/* @font-face {
    font-family: 'MozillaHeadline-VariableFont_wdth,wght';
    src: url("{{ url_for('static', filename='fonts/MozillaHeadline-VariableFont_wdth,wght.ttf') }}") format('truetype')
} */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'MozillaHeadline-VariableFont_wdth,wght', sans-serif; */
}

h1, h2 {
    color: #667eea !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: black;
    min-height: 100vh;
    color: white;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.task-tracker-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tracker-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
}

.header-visual {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.database-icon {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
}

.subtitle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.5rem 0;
    gap: 1rem;
}

.subtitle-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.highlight-tag {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.highlight-tag:hover {
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

.tracker-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tracker-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.analytics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 320px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.8s ease;
}

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

.analytics-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.utility-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    /* // background: linear-gradient(135deg, #667eea, #764ba2); */
    -webkit-background-clip: text;
    /* // -webkit-text-fill-color: transparent; */
    background-clip: text;
    transition: all 0.3s ease;
}

.utility-title {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 600;
}

.utility-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

a{
    text-decoration: none;
    color: inherit;
}

#content{
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: none;
}

#content-header {
    font-size: 2.5rem;
    color: #667eea;
    margin: 2rem 0;
    text-align: center;
}

.content-subheader {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem;
    text-align: center;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    /* // background: rgba(255, 255, 255, 0.05);
    // color: rgba(255, 255, 255, 0.9); */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: none;
    font-size: medium;
}

@media (max-width: 768px) {
    .task-tracker-section {
        padding: 0 1rem;
    }

    .tracker-header h1 {
        font-size: 2.2rem;
    }

    .tracker-description {
        font-size: 1rem;
    }

    .analytics-container {
        grid-template-columns: 1fr;
    }

    .utility-icon {
        font-size: 3rem;
    }

    .utility-title {
        font-size: 1.2rem;
    }
}

/* SOP-based Task Creator Styles */
/* --- Container & Drop Zone --- */
.zip-tool-container {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    transition: all 0.2s ease-in-out;
}

/* Drag & Drop Visual Cue */
.zip-tool-container.drag-over {
    background-color: #e0e7ff; /* Light Indigo */
    border-color: #6366f1;     /* Indigo */
    border-style: dashed;
}

.zip-tool-header {
    margin-top: 0;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* --- Layout Grid --- */
.control-row {
    display: flex;
    gap: 20px;
    /* This ensures the bottom of the Select box aligns with the bottom of the File button */
    align-items: flex-end; 
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Labels --- */
.styled-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: block;
}

/* --- Inputs & Buttons --- */
/* 1. The Select Dropdown */
.styled-select {
    height: 42px; /* Fixed Height */
    padding: 0 12px; /* Horizontal padding only, let Flex handle vertical */
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    color: #334155;
    font-size: 0.9rem;
    min-width: 160px;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for alignment */
    display: flex;
    align-items: center;
}
.styled-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 2. The File Input Wrapper (Holds Button + Text) */
.file-input-wrapper {
    display: flex;
    align-items: center; /* Vertically centers Button and Text */
    gap: 12px;
    height: 42px; /* Matches Select Height */
}

.hidden-file-input { display: none; }

/* 3. The "Choose File" Button */
.custom-file-button {
    height: 100%; /* Fill the wrapper height (42px) */
    padding: 0 24px;
    background-color: white;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;         /* Flexbox to center text inside button */
    align-items: center;   /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    box-sizing: border-box;
    transition: all 0.2s;
    white-space: nowrap;
}

.custom-file-button:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.custom-file-button:active {
    background-color: #e2e8f0;
    transform: translateY(1px);
}

/* 4. The Filename Text */
.file-name-display {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    line-height: 42px; /* Helps alignment fallback */
}

/* --- General Textareas --- */
.styled-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}
.styled-textarea:focus { outline: none; border-color: #6366f1; }

/* --- Action Button --- */
.action-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 40px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.action-btn:hover { background-color: #4338ca; }

/* --- Status --- */
#zip-status { margin-top: 12px; font-size: 0.85rem; font-weight: 500; min-height: 20px; }


.result-box {
    background-color: #f4f4f9;
    border: 1px solid #d1d1e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    max-height: 500px;
    overflow-y: auto;
}

#llm-output {
    white-space: pre-wrap; /* Preserves newlines/spaces but wraps text */
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.half-width {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}