﻿* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

.wrapper {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 32%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 30%), linear-gradient(135deg, #f8fafc, #ecfdf5);
    padding-bottom: 78px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #052e16, #15803d, #22c55e);
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(5, 46, 22, 0.28);
}

    .header::before {
        content: "👥";
        display: block;
        font-size: 34px;
        margin-bottom: 8px;
    }

    .header h1 {
        margin: 0;
        font-size: 40px;
        font-weight: 900;
        letter-spacing: 1.8px;
        text-transform: uppercase;
    }

    .header p {
        margin: 10px 0 0;
        font-size: 16px;
        opacity: 0.95;
    }

.menu {
    position: sticky;
    top: 134px;
    z-index: 999;
    background: rgba(2, 44, 34, 0.96);
    backdrop-filter: blur(12px);
    padding: 0 55px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(2, 44, 34, 0.22);
}

    .menu a {
        color: #dcfce7;
        text-decoration: none;
        padding: 17px 22px;
        font-weight: 800;
        transition: all 0.25s ease;
        border-bottom: 4px solid transparent;
        border-radius: 10px 10px 0 0;
    }

        .menu a:hover {
            background: rgba(34, 197, 94, 0.18);
            color: #ffffff;
            border-bottom: 4px solid #86efac;
        }

        .menu a:nth-child(1)::before {
            content: "🏠 ";
        }

        .menu a:nth-child(2)::before {
            content: "🏢 ";
        }

        .menu a:nth-child(3)::before {
            content: "📋 ";
        }

        .menu a:nth-child(4)::before {
            content: "➕ ";
        }

.content {
    width: 100%;
    min-height: calc(100vh - 260px);
    padding: 42px 58px 120px;
}

    .content h2 {
        margin-top: 0;
        margin-bottom: 25px;
        color: #14532d;
        font-size: 32px;
        font-weight: 900;
        border-left: 8px solid #22c55e;
        padding-left: 16px;
    }

    .content p {
        font-size: 16px;
        line-height: 1.85;
        color: #334155;
    }

    .content ul {
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid #bbf7d0;
        border-radius: 16px;
        padding: 22px 35px;
        max-width: 760px;
        box-shadow: 0 12px 30px rgba(21, 128, 61, 0.08);
    }

    .content li {
        margin: 9px 0;
        font-weight: 600;
    }

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: 100%;
    background: linear-gradient(135deg, #052e16, #0f172a);
    color: #dcfce7;
    text-align: center;
    padding: 17px;
    box-shadow: 0 -8px 28px rgba(5, 46, 22, 0.28);
}

    .footer p {
        margin: 0;
        font-weight: 700;
    }

.form-table {
    width: 100%;
    max-width: 980px;
    background: rgba(255, 255, 255, 0.92);
    padding: 34px;
    border-radius: 22px;
    border: 1px solid #bbf7d0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

    .form-table td {
        padding: 14px;
        font-weight: 800;
        color: #14532d;
    }

        .form-table td:first-child {
            width: 190px;
        }

.textbox {
    width: 100%;
    max-width: 620px;
    padding: 13px 15px;
    border: 1px solid #86efac;
    border-radius: 13px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    transition: all 0.25s ease;
}

    .textbox:focus {
        border-color: #16a34a;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
    }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white !important;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 900;
    margin-right: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

    .btn:hover {
        background: linear-gradient(135deg, #16a34a, #166534);
        transform: translateY(-2px);
    }

.message {
    display: block;
    margin: 15px 0;
    color: #15803d;
    font-weight: 900;
}

.error {
    display: block;
    margin: 8px 0;
    color: #dc2626;
    font-weight: 800;
}

table.grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 24px;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

    table.grid th {
        background: linear-gradient(135deg, #052e16, #15803d);
        color: white;
        padding: 17px 15px;
        text-align: left;
        font-size: 15px;
        font-weight: 900;
    }

    table.grid td {
        padding: 15px;
        border-bottom: 1px solid #dcfce7;
        font-size: 14px;
        color: #334155;
    }

    table.grid tr:nth-child(even) {
        background: #f0fdf4;
    }

    table.grid tr:hover {
        background: #dcfce7;
    }

    table.grid a {
        display: inline-block;
        padding: 8px 13px;
        border-radius: 11px;
        font-weight: 900;
        text-decoration: none;
        margin: 3px;
        transition: all 0.25s ease;
    }

        table.grid a[id*="btnSua"] {
            color: #ffffff;
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
        }

            table.grid a[id*="btnSua"]:hover {
                background: linear-gradient(135deg, #0284c7, #1d4ed8);
                transform: translateY(-1px);
            }

        table.grid a[id*="btnXoa"] {
            color: #ffffff;
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

            table.grid a[id*="btnXoa"]:hover {
                background: linear-gradient(135deg, #dc2626, #991b1b);
                transform: translateY(-1px);
            }

@media screen and (max-width: 900px) {
    .header {
        padding: 23px 15px;
    }

        .header h1 {
            font-size: 28px;
        }

    .menu {
        top: 125px;
        padding: 0 14px;
        flex-wrap: wrap;
    }

        .menu a {
            padding: 13px 11px;
        }

    .content {
        padding: 26px 18px 120px;
    }

    .form-table {
        max-width: 100%;
        padding: 18px;
    }

        .form-table td {
            display: block;
            width: 100%;
            padding: 8px;
        }

    .textbox {
        max-width: 100%;
    }

    table.grid {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
