:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background: #000;
    background: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; Removed to allow scrolling from top */
    overflow-y: auto;
    padding: 40px 0;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 50%;
}

.blob-2 {
    bottom: 20%;
    right: 10%;
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: #ff00cc;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(20deg);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #888;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-header p {
    font-weight: 300;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.1);
}

.form-group select option {
    background-color: #24243e;
    color: white;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-footer a {
    color: var(--secondary-color);
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
}

.card-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.alert-error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff9999;
}

.alert-success {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #99ffaa;
}

.alert-info {
    background: rgba(10, 132, 255, 0.2);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: #99ccff;
}

/* Dashboard specific */
.dashboard-card {
    text-align: center;
}

.highlight {
    color: #4facfe;
    font-weight: 600;
}

.dashboard-content {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.info-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.info-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.info-icon svg {
    width: 32px;
    height: 32px;
}

.info-box h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 1.8rem;
    font-weight: 600;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    font-size: 1.2rem;
    /* Icon size */
}

.tooltip:hover {
    z-index: 9999;
    /* Ensure hovered tooltip gets highest stack level compared to unhovered siblings/rows */
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #888;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;

    /* Position the tooltip */
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    /* Half of width to center */

    /* Fade in */
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Arrow for tooltip */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #888 transparent transparent transparent;
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;

}

.data-table th {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table .sub-tasks-row th {
    background-color: transparent;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.data-table tr.sub-tasks-row:hover {
    background-color: transparent;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }

    .data-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;

    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
        opacity: 0.7;
    }

    .data-table td.sub-tasks-td {
        padding-left: 15px !important;
        text-align: left;
    }

    .data-table td.sub-tasks-td::before {
        content: none;
    }

    .data-table tr.main-task.has-subtasks {
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
    }

    .data-table tr.sub-tasks-row {
        margin-top: 0;
        margin-bottom: 20px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top: none;
        background: transparent;
    }
}