:root {
    --primary-gradient: linear-gradient(135deg, #00b09b, #96c93d);
    --primary-solid: #00b09b;
    --dark-green: #064e3b;
    --light-green-bg: #f0fdf4;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --shadow-glow: 0 10px 40px rgba(0, 176, 155, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: radial-gradient(circle at 10% 20%, rgb(240, 253, 244) 0%, rgb(255, 255, 255) 90%);
    margin: 0;
    padding: 40px 20px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px 16px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-left: max(0px, calc(50% - 450px));
}

.back-link:hover {
    color: var(--primary-solid);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 176, 155, 0.1);
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.public-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.icon-header {
    font-size: 48px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 176, 155, 0.2));
}

.public-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

.public-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}


.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.tab {
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab:hover {
    color: var(--primary-solid);
    background: rgba(255, 255, 255, 0.8);
}

.tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
}

.filter-box {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.filter-box label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--dark-green);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-box select {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b09b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.filter-box select:focus {
    outline: none;
    border-color: var(--primary-solid);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 176, 155, 0.1);
}

.total-card {
    background: var(--primary-gradient);
    color: white;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.total-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.total-info {
    position: relative;
    z-index: 2;
}

.total-info span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    font-weight: 600;
}

.total-info h2 {
    font-size: 56px;
    margin: 5px 0 0 0;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.total-icon {
    font-size: 60px;
    opacity: 0.2;
    position: relative;
    z-index: 1;
    transform: rotate(-10deg);
}

.table-container h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--dark-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-container h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

th {
    text-align: left;
    background: #f8fafc;
    padding: 18px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 20px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    font-weight: 500;
    background: white;
    transition: background 0.2s;
}

tr:hover td {
    background: var(--light-green-bg);
}

tr:last-child td {
    border-bottom: none;
}

.text-right {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary-solid);
}

.hidden {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #cbd5e1;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.footer-simple {
    text-align: center;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 16px;
        gap: 5px;
    }

    .tab {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .total-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }

    .total-info h2 {
        font-size: 42px;
    }

    .back-link {
        margin-left: 0;
    }
}
