/* Global Styles with Glass Morphism - Very Pale Yellow & Futuristic - All Pages */

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --text-primary: #1c1917;
    --text-secondary: #78716c;
    --border-color: rgba(250, 204, 21, 0.08);
}

/* ===== GLOBAL ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #fefefe;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(250, 204, 21, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, rgba(250, 204, 21, 0.01) 0%, transparent 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Futuristic Abstract Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(250, 204, 21, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(250, 204, 21, 0.03) 0%, transparent 30%),
        linear-gradient(135deg, transparent 0%, rgba(250, 204, 21, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(250, 204, 21, 0.01) 2px, rgba(250, 204, 21, 0.01) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(250, 204, 21, 0.01) 2px, rgba(250, 204, 21, 0.01) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ===== MAIN CONTAINER (2 COLUMN GRID) ===== */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ===== DASHBOARD COLUMN ===== */
.container > div {
    display: grid;
    grid-auto-rows: min-content;
    gap: 22px;
}

/* ===== CARD - Glass Morphism ===== */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(250, 204, 21, 0.1);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ===== HEADINGS ===== */
.card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.card h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card p {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== INPUTS - Glass Effect ===== */
input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(250, 204, 21, 0.15);
    font-size: 14px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
}

/* ===== LABELS ===== */
label {
    margin-top: 14px;
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== BUTTONS - Futuristic Glass Effect ===== */
button {
    margin-top: 14px;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

button:hover::before {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Secondary button */
button + button {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
    border: 1px solid rgba(250, 204, 21, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

button + button:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(250, 204, 21, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== DIVIDER ===== */
hr {
    border: none;
    border-top: 1px solid rgba(250, 204, 21, 0.1);
    margin: 18px 0;
}

/* ===== TABLE - Glass Effect ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.1);
}

th {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-align: left;
    font-weight: 600;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.08);
    font-size: 13px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.6);
}

/* ===== MESSAGE TEXT ===== */
#userMsg,
#resetMsg,
#assignMsg,
#projectMsg,
#deactivateMsg,
#archiveMsg,
#statusMsg {
    margin-top: 10px;
    font-size: 13px;
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== NAV BAR - Glass Effect ===== */
.navbar {
    background: rgba(28, 25, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.navbar a {
    color: white;
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Login Page Specific - Larger Window */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 56px;
    border-radius: 24px;
    border: 1px solid rgba(250, 204, 21, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    opacity: 0.6;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 24px;
}

.login-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Logo Styles for Login */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.logo-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
    position: relative;
}

.logo-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.logo-circle:nth-child(1) {
    width: 10px;
    height: 10px;
    animation-delay: 0s;
}

.logo-circle:nth-child(2) {
    width: 14px;
    height: 14px;
    animation-delay: 0.3s;
}

.logo-circle:nth-child(3) {
    width: 16px;
    height: 16px;
    animation-delay: 0.6s;
}

.logo-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(163, 163, 163, 0.3), transparent);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-transform: none;
}

.logo-text .ai {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* ===== VOICE INPUT BUTTON ===== */
.voice-input-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(250, 204, 21, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voice-input-btn:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.voice-input-btn svg {
    color: var(--primary);
    transition: all 0.3s ease;
}

.voice-input-btn.recording {
    background: var(--primary);
    border-color: var(--primary-dark);
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-input-btn.recording svg {
    color: white;
}

.voice-input-btn.processing {
    background: #6b7280;
    border-color: #4b5563;
    animation: spin 1s linear infinite;
}

.voice-input-btn.processing svg {
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Adjust textarea/input positioning for voice button */
textarea, input[type="text"] {
    padding-right: 55px !important;
}

/* Mobile optimization for voice button */
@media (max-width: 768px) {
    .voice-input-btn {
        width: 44px;
        height: 44px;
        right: 8px;
    }
}
