* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*line-height: 1.0;*/
    color: #212529;
    background: #f8f9fa;
    min-height: 100vh;
    /*display: flex;*/
    /*flex-direction: column;*/
}

h2 {
    color: #744685;
    font-family: arial, helvetica, sans-serif;
    margin-bottom: 1rem;
}

h3 {
    color: #4b733f;
    font-family: arial, helvetica, sans-serif;
    margin-bottom: 1rem;
}

h4 {
    color: #dfbd63;
    font-family: arial, helvetica, sans-serif;
}

h5 {
    margin-bottom: 1rem;
}

ul {
    padding-left: 3rem;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 3px solid rgba(223, 189, 99, 0.8);
    position: relative;
    z-index: 1001;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-header h1 {
    color: #212529;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-gks {
    color: rgba(223, 189, 99, 0.8);
    font-weight: 800;
}

.GKS-Logo {
    height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(223, 189, 99, 0.8);
    border-radius: 5px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #212529;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(223, 189, 99, 0.2);
}

.menu-toggle.active {
    background: rgba(223, 189, 99, 0.8);
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid rgba(223, 189, 99, 0.8);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1.1rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-link:hover, .nav-item.active > .nav-link {
    color: #000;
    background: rgba(223, 189, 99, 0.8);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 5px;
}

/* .nav-item:hover .dropdown-menu {
    display: block;
} */

.nav-item.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #dfbd63;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.logout-btn {
    background: #ef2315;
    color: white !important;
    padding: 0.2rem 0.8rem;
    border-radius: 4px !important;
    border: none !important;
    height: auto !important;
    min-width: auto !important;
}

.logout-btn:hover {
    background: #d32f2f !important;
}

/* Main Content */
main {
    flex: 1;
}

/* Card */
.card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    border: 1px solid #dee2e6;
}

.card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}


/* Forms */
.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    /*margin: 0.5rem;*/
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

textarea.form-control {
    font-family: inherit;
}

.form-group input:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(223, 189, 99, 0.8);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    padding-bottom: 1rem;
}

.form-group.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

#gks_member, #fgks_member {
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: rgba(223, 189, 99, 0.8);
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: rgba(230, 203, 132, 0.83);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    /*margin-top: 2rem;*/
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table thead {
    background: #744685;
    color: white;
}

table th,
table td {
    padding: 0.3rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background: #f5f5f5;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {



    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control {
        width: 100%;
        padding: 0;
        border: 2px solid #ddd;
        border-radius: 0;
        font-size: 0.75rem;
        transition: border-color 0.3s;
    }



    table th,
    table td {
        padding: 0;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }





    .menu-toggle {
        display: block;
    }

    .main-header .container {
        padding: 0;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        display: none !important;
        width: 100%;
        order: 3;
        margin-top: 0;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block !important;
        position: relative;
        z-index: 1002;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.8rem 1.2rem;
        border-radius: 8px;
    }

    .nav-text {
        flex: 1;
        text-align: left;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 0;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        background: #fdfdfd;
        border-radius: 8px;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0;
    }

    .card {
        padding: 0;
        margin: 0;
    }
}

