/* Custom styles for Consulting OS */

/* Tab styling */
.tab-button {
    border-bottom-color: transparent;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #F9FAFB;
    border-bottom-color: #6B7280;
}

.tab-button.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

/* Tab content */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* File upload hover states */
.border-dashed:hover {
    border-color: #6B7280;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: #4B5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Professional card styling */
.card-elevated {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-elevated:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Status indicator animations */
.status-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive grid improvements */
@media (max-width: 768px) {
    .canvas-grid {
        grid-template-columns: 1fr;
    }
    
    .swot-grid {
        grid-template-columns: 1fr;
    }
}

/* Print-friendly styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced focus states for accessibility */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Gradient backgrounds for sections */
.gradient-bg {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Analytics Dashboard Enhancements */
.kpi-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.kpi-card:hover::before {
    left: 100%;
}

/* Achievement System Styles */
.achievement-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
}

.achievement-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.achievement-item.completed {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10B981;
}

.achievement-item.in-progress {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
    animation: pulse-glow 2s infinite;
}

.achievement-item.locked {
    opacity: 0.5;
    background-color: rgba(107, 114, 128, 0.1);
    border-left: 4px solid #6B7280;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    }
}

/* Progress Bar Animations */
.progress-bar {
    transition: width 1s ease-in-out;
    background: linear-gradient(45deg, #F59E0B, #EAB308, #F59E0B);
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Chart Container Enhancements */
.chart-container {
    position: relative;
    transition: all 0.3s ease;
}

.chart-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Micro-interactions */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Notification animations */
.notification-enter {
    animation: slideInRight 0.3s ease-out;
}

.notification-exit {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
