/*
** index.php
*/

h1 {
    font-size: 26px;
}

p {
    margin: 0;
    color: #687789;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #26384a;
}

.project {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 15px 0;
}


button:hover {
    background: #eef2f6;
    border-radius: 5px;
}

button {
    cursor: pointer;
    border-radius: 5px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 11px;
    border: none;
    background: transparent;
    color: #26384a;
    text-decoration: none;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

a {
    font-size: 14px;
    font-family: Arial, sans-serif;
    width: auto;
    display: inline-block;
    background: #26384a;
    color: white;
    padding: 12px 18px;
    border-radius: 5px;
    text-decoration: none;
}

/*
** login.php
*/
.login {
    background: white;
    padding: 35px;
    width: 340px;
    max-width: calc(100% - 50px);
    border-radius: 10px;
    box-shadow: 0 4px 20px #00000015;
}

.login h1 { margin-top: 0; }
.login button {
    text-align: center;
    text-transform: uppercase;
    margin-top: 25px;
    width: 100%;
    padding: 12px;
    background: #2167ae;
    color: white;
    border: 0;
    cursor: pointer;
}

.login label { display: block; margin-top: 18px; }
.login input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    box-sizing: border-box;
}
.login .error { color: #b00020; }

/*
** public/admin/index.php
*/
.index-main {
    padding: 25px 0;
}

.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px;
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 25px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(
        auto-fit, minmax(210px, 1fr)
    );
    gap: 16px;
    margin-bottom: 28px;
}

.admin-card {
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 9px;
    padding: 22px;
}

.admin-card .number {
    font-size: 30px;
    font-weight: bold;
    color: #26384a;
    margin-bottom: 8px;
}

.admin-card .label {
    color: #687789;
    font-size: 14px;
}

.admin-section {
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 9px;
    margin-bottom: 25px;
    overflow: hidden;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e0e5eb;
}

.admin-section-header h2 {
    margin: 0;
    font-size: 18px;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid #edf0f3;
}

.admin-table th {
    background: #f8fafc;
    color: #526172;
    font-weight: 600;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 5px;
    background: #edf2f7;
    font-size: 12px;
}

.admin-badge.active {
    background: #e7f5e9;
    color: #28733b;
}

.admin-badge.inactive {
    background: #fbeaea;
    color: #a33333;
}

.admin-note {
    padding: 14px 20px;
    color: #687789;
    font-size: 13px;
}


/*
** header.php
*/

.panso-header {
    background: #26384a;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 0 24px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 9px;
}

.panso-header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.panso-brand {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.panso-project-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #d8e2eb;
}

.panso-header-right {
    position: relative;
}

.panso-user-menu {
    position: relative;
}

.panso-user-menu summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
}

.panso-user-menu summary::-webkit-details-marker {
    display: none;
}

.panso-user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 210px;
    background: white;
    color: #26384a;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(0,0,0,.15);
    padding: 8px;
    z-index: 1000;
}

.panso-user-dropdown a,
.panso-user-dropdown button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 11px;
    border: none;
    background: transparent;
    color: #26384a;
    text-decoration: none;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.panso-user-dropdown a:hover,
.panso-user-dropdown button:hover {
    background: #eef2f6;
    border-radius: 4px;
}

.panso-user-dropdown hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 6px 0;
}

.panso-header form {
    margin: 0;
}


.panso-project-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.panso-project-selector label {
    color: #d8e2eb;
    font-size: 13px;
}

.panso-project-selector select {
    background: #fff;
    color: #26384a;
    border: 1px solid #b8c5d0;
    border-radius: 5px;
    padding: 8px 12px;
    min-width: 190px;
    max-width: 280px;
    font-size: 13px;
    cursor: pointer;
}



/*
** mobile
*/
@media (max-width: 650px) {
    .admin-main {
        padding: 15px;
    }

    .panso-header {
        padding: 12px;
        flex-wrap: wrap;
    }

    .panso-header-left {
        gap: 12px;
        flex-wrap: wrap;
    }
}

