/* Enterprise Portal CSS */

:root {
    --primary-color: #0f17ff;
    --primary-dark: #0a12cc;
    --primary-light: #e8eaff;
    --secondary-color: #fa641e;
    --success-color: #28a745;
    --success-light: #d4edda;
    --info-color: #17a2b8;
    --info-light: #d1ecf1;
    --warning-color: #ffc107;
    --warning-light: #fff3cd;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    --shadow-sm: 0 4px 16px rgba(31, 38, 135, 0.08);
    --shadow-lg: 0 16px 48px rgba(31, 38, 135, 0.15);
    --shadow-glow: 0 0 20px rgba(15, 23, 255, 0.15);
}

/* Global Styles */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Navigation */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-glow);
}

/* Login Page */
.login-container {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(15, 23, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(250, 100, 30, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    max-width: 450px;
    width: 100%;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.12), 0 4px 16px rgba(0,0,0,0.06) !important;
}

.btn-google {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(10px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 1rem;
    padding: 1rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    background: linear-gradient(135deg, rgba(15, 23, 255, 0.05), rgba(255, 255, 255, 0.95));
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(15, 23, 255, 0.15), 0 8px 16px rgba(0,0,0,0.08);
}

.google-icon {
    flex-shrink: 0;
}

/* Dashboard */
.dashboard-container {
    padding: 0 1rem;
}

.welcome-time {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08), 0 2px 8px rgba(0,0,0,0.04) !important;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Stats Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-success-light {
    background-color: var(--success-light) !important;
}

.bg-info-light {
    background-color: var(--info-light) !important;
}

.bg-warning-light {
    background-color: var(--warning-light) !important;
}

/* Profile */
.profile-picture {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    background-color: var(--light-gray);
    border: 4px solid white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-details {
    margin-top: 1.5rem;
}

.detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0;
    word-break: break-all;
}

/* Action Cards */
.action-card {
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-card:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Activity */
.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: white !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .dashboard-container {
        padding: 0 0.5rem;
    }
    
    .profile-picture,
    .profile-picture-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .login-card {
        margin: 1rem;
    }
    
    .btn-google {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .action-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus States */
.btn:focus,
.btn-google:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(21, 28, 214, 0.25);
}

/* Loading States */
.btn-google.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-google.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
