/* Global Styles - Shared across all pages */
/* Dark Futuristic Theme - Common elements and utilities */

/* ================================================ */
/* GLOBAL RESET & BASE STYLES */
/* ================================================ */

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0 20px 40px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0a0e1a 100%);
    color: #b8c5d6;
    overflow-y: auto !important;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ================================================ */
/* LAYOUT CONTAINERS */
/* ================================================ */

main {
    min-height: calc(100vh - 70px);
    /* Account for header height */
    padding: 20px 0;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* ================================================ */
/* CARD COMPONENTS */
/* ================================================ */

.card {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 26, 0.9));
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 255, 0.2);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 200, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 200, 255, 0.03) 50%, transparent 70%);
    border-radius: 20px;
    pointer-events: none;
}

/* ================================================ */
/* TYPOGRAPHY */
/* ================================================ */

h1 {
    color: #00c8ff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

h2 {
    color: #00c8ff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

h3 {
    color: #00c8ff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(184, 197, 214, 0.9);
}

/* ================================================ */
/* FORM ELEMENTS */
/* ================================================ */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #00c8ff;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.3);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 10px;
    background: rgba(26, 31, 46, 0.6);
    color: #b8c5d6;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #00c8ff;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
    background: rgba(26, 31, 46, 0.8);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================================ */
/* BUTTONS */
/* ================================================ */

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn::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 ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #00c8ff, #0099cc);
    color: white;
    border: 1px solid rgba(0, 200, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099cc, #007acc);
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.8), rgba(51, 51, 51, 0.9));
    color: #b8c5d6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(85, 85, 85, 0.9), rgba(68, 68, 68, 1));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #c44569);
    color: white;
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c44569, #a4243b);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: white;
    border: 1px solid rgba(46, 213, 115, 0.3);
    box-shadow: 0 5px 15px rgba(46, 213, 115, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.5);
    transform: translateY(-2px);
}

/* Button size variations */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

/* Button width variations */
.btn-block {
    width: 100%;
    display: block;
}

/* ================================================ */
/* UTILITY CLASSES */
/* ================================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* ================================================ */
/* GRID SYSTEM */
/* ================================================ */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 {
    flex: 0 0 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
}

.col-6 {
    flex: 0 0 50%;
}

.col-8 {
    flex: 0 0 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
}

.col-12 {
    flex: 0 0 100%;
}

/* ================================================ */
/* ALERT MESSAGES */
/* ================================================ */

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(30, 144, 255, 0.2));
    border-color: rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(196, 69, 105, 0.2));
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 153, 204, 0.2));
    border-color: rgba(0, 200, 255, 0.3);
    color: #00c8ff;
}

/* ================================================ */
/* LOADING SPINNER */
/* ================================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 200, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00c8ff;
    animation: spin 1s ease-in-out infinite;
}

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

/* ================================================ */
/* RESPONSIVE DESIGN */
/* ================================================ */

@media (max-width: 768px) {
    body {
        padding: 0 15px 20px;
    }

    main {
        min-height: calc(100vh - 140px);
        padding: 15px 0;
    }

    .card {
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-9 {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        padding: 12px;
        font-size: 14px;
    }
}

/* Header Component - Enhanced Dark Futuristic Theme */

/* Header fixed positioning and layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(8, 12, 22, 0.98));
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 200, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 200, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 200, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    height: 70px;
    transition: all 0.3s ease;
}

/* Enhanced header glow effect */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
        linear-gradient(90deg, transparent 0%, rgba(0, 200, 255, 0.03) 50%, transparent 100%);
    pointer-events: none;
    animation: headerGlow 4s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Enhanced logo styling */
.header-logo {
    text-decoration: none;
    color: #00c8ff;
    transition: all 0.4s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(0, 200, 255, 0.05);
    border: 1px solid rgba(0, 200, 255, 0.2);
}

.header-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-logo:hover::before {
    opacity: 1;
}

.header-logo h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.6);
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
}

.header-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.3);
    background: rgba(0, 200, 255, 0.1);
}

/* Enhanced navigation container */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Enhanced navigation links */
.header-nav a.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Enhanced shimmer effect */
.header-nav a.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a.nav-link:hover::before {
    left: 100%;
}

.header-nav a.nav-link:hover {
    color: #ffffff;
    background: rgba(0, 200, 255, 0.15);
    border-color: rgba(0, 200, 255, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 200, 255, 0.2),
        0 0 20px rgba(0, 200, 255, 0.1);
}

.header-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(0, 150, 200, 0.3));
    border-color: rgba(0, 200, 255, 0.5);
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Role-based navigation visibility - Links are controlled by PHP, not CSS */
/* Removed display:none rules - PHP controls which links appear */

.nav-link {
    display: inline-block;
    position: relative;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(255, 71, 87, 0.4),
        0 0 12px rgba(255, 71, 87, 0.3);
    animation: notificationPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes notificationPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 2px 8px rgba(255, 71, 87, 0.4),
            0 0 12px rgba(255, 71, 87, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow:
            0 4px 12px rgba(255, 71, 87, 0.6),
            0 0 20px rgba(255, 71, 87, 0.5);
    }
}

/* Auth container */
.auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Auth loading state */
.auth-loading {
    color: transparent;
    font-size: 14px;
    padding: 10px 20px;
    min-width: 120px;
    /* Reserve space for buttons */
    height: 40px;
    /* Match button height */
}

/* Enhanced auth button styling */
.auth-btn {
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
}



/* Enhanced login button */
.login-btn {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 150, 200, 0.2));
    border: 1px solid rgba(0, 200, 255, 0.4);
}

.login-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25), rgba(0, 150, 200, 0.3));
    border-color: rgba(0, 200, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.3);
}

/* Enhanced register button */
.register-btn {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15), rgba(30, 144, 255, 0.2));
    border: 1px solid rgba(46, 213, 115, 0.4);
}

.register-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.25), rgba(30, 144, 255, 0.3));
    border-color: rgba(46, 213, 115, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.3);
}

/* Logout button */
.logout-btn {
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* User info display - Clean card design */
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 220px;
    animation: slideInFade 0.4s ease-out;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 200, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 200, 255, 0.15);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c8ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.avatar-icon {
    font-size: 18px;
    filter: brightness(1.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    /* Allow text to truncate */
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* Add subtle glow effect on hover */


.profile-action {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.profile-action:hover {
    background: rgba(0, 200, 255, 0.2);
    color: #00c8ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.logout-action {
    background: rgba(220, 38, 38, 0.1);
    color: rgba(220, 38, 38, 0.8);
}

.logout-action:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Body offset for fixed header - applied globally since header is always present */
body {
    padding-top: 70px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
        position: fixed;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 12px;
    }

    .auth-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .user-card {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-role {
        font-size: 10px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    body {
        padding-top: 120px !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }

    .header-logo h1 {
        font-size: 18px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .user-card {
        padding: 6px 10px;
        gap: 10px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .avatar-icon {
        font-size: 16px;
    }

    .action-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Unified Login Styles - Dark Futuristic Theme */
/* Used for all login pages: login.php (and redirects from translator_login.html, hospital_login.html) */
/* NOTE: This is for standalone auth pages with their own header design */
/* NOTE: Pages with main navigation use global.css for header/sidebar */

main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

card {
    width: 300px;
}

h1,
h2 {
    color: #00c8ff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
    position: relative;
    z-index: 1;
}

.subtitle {
    text-align: center;
    color: rgba(184, 197, 214, 0.8);
    margin-bottom: 30px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

form {
    position: relative;
    z-index: 1;
}

/* Override global form group margin for login page */
.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Special focus effects for login page */
input:focus,
select:focus,
textarea:focus {
    border-color: #00c8ff;
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.3),
        inset 0 0 20px rgba(0, 200, 255, 0.1);
    background: rgba(10, 14, 26, 0.9);
    transform: translateY(-2px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    color: #b8c5d6;
}

/* Form actions container */
.form-actions {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Auth button styling for standalone auth pages */
.auth-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    display: inline-block;
    cursor: pointer;
}



/* Login button */
.auth-btn.login-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.login-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Register button */
.auth-btn.register-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.register-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Legacy button styling for compatibility */
button,
button[type="submit"],
.submit-btn,
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #00c8ff 0%, #0096cc 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}



button:hover:not(:disabled),
button[type="submit"]:hover,
.submit-btn:hover,
.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6d6 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 200, 255, 0.4);
}

button:active,
button[type="submit"]:active,
.submit-btn:active {
    transform: translateY(-1px);
}

button:disabled,
.login-btn:disabled {
    background: rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Message styling */
.message {
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    display: none;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Links styling */
.auth-links {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.auth-links a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(184, 197, 214, 0.8);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.login-link a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 80px 15px 20px;
    }

    main {
        min-height: calc(100vh - 140px) !important;
    }

    .card {
        padding: 25px 20px;
    }

    h1,
    h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    input,
    select,
    textarea,
    input[type="email"],
    input[type="password"] {
        padding: 14px 16px;
        font-size: 15px;
    }

    button,
    button[type="submit"],
    .submit-btn,
    .login-btn {
        padding: 16px;
        font-size: 16px;
    }
}

/* Unified Register Styles - Dark Futuristic Theme */
/* Used for all register pages: translator_register.php and any future register pages */
/* NOTE: This is for standalone auth pages with their own header design */
/* NOTE: Pages with main navigation use global.css for header/sidebar */

main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    color: #00c8ff;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.subtitle {
    color: rgba(184, 197, 214, 0.8);
    margin: 0 0 30px;
    font-size: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00c8ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.8);
    color: #b8c5d6;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(184, 197, 214, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #00c8ff;
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.3),
        inset 0 0 20px rgba(0, 200, 255, 0.1);
    background: rgba(10, 14, 26, 0.9);
    transform: translateY(-2px);
}

select {
    cursor: pointer;
}

select option {
    background: #1a1f2e;
    color: #b8c5d6;
    padding: 10px;
}

/* Language selection and checkbox groups */
.languages-section {
    margin-bottom: 30px;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.language-item {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 150, 255, 0.1));
    border: 1px solid rgba(0, 200, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #00c8ff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.language-item:hover::before {
    left: 100%;
}

.language-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

.remove-language {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-language:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.add-language {
    background: linear-gradient(135deg, #00c8ff 0%, #0096cc 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

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

.add-language:hover::before {
    left: 100%;
}

.add-language:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.3);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    background: rgba(26, 31, 46, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item:hover {
    border-color: rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

.checkbox-item.selected {
    border-color: #00c8ff;
    background: rgba(0, 200, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    position: relative;
    z-index: 1;
}

.checkbox-item label {
    margin: 0;
    color: #b8c5d6;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    z-index: 1;
}

/* Form actions container */
.form-actions {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Auth button styling for standalone auth pages */
.auth-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    display: inline-block;
    cursor: pointer;
}



/* Login button */
.auth-btn.login-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.login-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Register button */
.auth-btn.register-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.register-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Legacy button styling for compatibility */
button,
button[type="submit"],
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00c8ff 0%, #0096cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}



button:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6d6 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 200, 255, 0.4);
}

button:disabled {
    background: rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Message styling */
.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Links styling */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(184, 197, 214, 0.8);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.login-link a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.password-requirements {
    font-size: 14px;
    color: rgba(184, 197, 214, 0.6);
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 80px 15px 20px;
    }

    .card {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .languages-list {
        gap: 8px;
    }

    main {
        min-height: calc(100vh - 140px) !important;
    }

    .language-item {
        font-size: 13px;
        padding: 6px 12px;
    }

    input,
    select,
    textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    button,
    button[type="submit"],
    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}