/* Novo Tech - Modern Industrial Design 2026 */
:root {
    --primary-color: #152941;
    /* Tech Blue */
    --secondary-color: #E4A023;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed;
    /* Tech/Circuit background */
    background-size: cover;
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* Dark Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -1;
}

/* Glassmorphism Card */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: var(--text-light);
    width: 100%;
    max-width: 400px;
}

.brand-logo {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Glassmorphism Inputs (Login Only) */
.login-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(21, 41, 65, 0.25);
}

.login-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.login-card .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* User Profile Navbar & Dropdown Styles (Gmail-like) */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.profile-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-letter-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    background-color: #1a73e8; /* Default Google Blue */
}

/* Gmail-like Profile Dropdown Card */
.profile-dropdown-card {
    position: absolute;
    top: 45px;
    right: 0;
    width: 330px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    z-index: 1090;
    display: none; /* Toggled via JS */
    color: #202124;
    padding: 20px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    animation: profileFadeIn 0.15s ease-out;
}

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

.profile-dropdown-card.show {
    display: block;
}

.profile-dropdown-header {
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.profile-large-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
}

.profile-large-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-large-avatar .profile-letter-avatar {
    font-size: 2.2rem;
    font-weight: 500;
}

.profile-camera-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    color: #5f6368;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

.profile-camera-overlay:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
}

.profile-info-name {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-info-email {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-info-role {
    display: inline-block;
    font-size: 0.75rem;
    background: #f1f3f4;
    color: #3c4043;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.profile-dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 100px;
    background: #ffffff;
    color: #3c4043;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    text-decoration: none !important;
}

.profile-dropdown-btn:hover {
    background-color: #f8f9fa;
    border-color: #cdd0d4;
    color: #1a73e8;
}

.profile-dropdown-btn-primary {
    background-color: #1a73e8;
    color: #ffffff;
    border: none;
}

.profile-dropdown-btn-primary:hover {
    background-color: #1557b0;
    color: #ffffff;
}

.profile-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f3f4;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.75rem;
    color: #5f6368;
}

.profile-dropdown-footer a {
    color: #5f6368;
    text-decoration: none;
}

.profile-dropdown-footer a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Profile Edit Modal Specifics */
#profileEditModal .modal-content {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: none;
}

#profileEditModal .modal-header {
    border-bottom: 1px solid #f1f3f4;
    padding: 16px 24px;
}

#profileEditModal .modal-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #202124;
}

#profileEditModal .modal-body {
    padding: 24px;
}

#profileEditModal .modal-footer {
    border-top: 1px solid #f1f3f4;
    padding: 12px 24px;
}

.profile-image-upload-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #1a73e8;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-image-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-file-input-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.profile-file-input-wrapper input[type="file"] {
    display: none;
}

.profile-file-input-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    color: #3c4043;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-file-input-btn:hover {
    background-color: #e8eaed;
}

/* Modal form controls matching Gmail style */
.profile-modal-form .form-label {
    color: #3c4043;
    font-weight: 500;
    font-size: 0.8rem;
}

.profile-modal-form .form-control {
    border-radius: 4px;
    border: 1px solid #dadce0;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #202124;
    background: #ffffff;
}

.profile-modal-form .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}