/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #b11a2d, #f79019);
    display: flex;
    flex-direction: column;
}

/* ===== MAIN WRAPPER ===== */
.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
}

/* ===== CARD ===== */
.card {
    background: #ffffff;
    width: 100%;
    max-width: 850px; /* wider for horizontal logo */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeIn 0.6s ease-in-out;
}

/* ===== LOGO ===== */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 100%;
    max-width: 500px; /* perfect for your wide logo */
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* ===== TITLE ===== */
.title {
    font-size: 28px;
    font-weight: 600;
    color: #b11a2d;
    margin-bottom: 25px;
}

/* ===== INPUT ===== */
.input-group {
    display: flex;
    background: #f4f4f4;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 15px;
}

.input-group input {
    border: none;
    padding: 16px;
    flex: 1;
    outline: none;
    font-size: 16px;
    background: transparent;
}

/* ===== BUTTON ===== */
.btn {
    margin-top: 20px;
    background: #b11a2d;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #8f1424;
}

/* ===== BUTTON GROUP ===== */
.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-secondary {
    background: #f79019;
}

.btn-secondary:hover {
    background: #d86d0e;
}

/* ===== RESULT BOX ===== */
.result-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    background: #f9f9f9;
}

/* Result rows */
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 15px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #b11a2d;
}

.result-value {
    color: #333;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    color: #ddd;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: auto;
}

.footer a {
    color: #f79019;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== LOADER ===== */
.loader {
    display: none;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #b11a2d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 25px auto;
    animation: spin 1s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {opacity:0; transform:translateY(10px);}
    to {opacity:1; transform:translateY(0);}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card {
        padding: 25px;
    }

    .btn-group {
        flex-direction: column;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
    }

    .title {
        font-size: 22px;
    }
}

/* ===== PRINT STYLE ===== */
@media print {
    body {
        background: white;
    }

    .btn-group,
    .footer {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ===== DASHBOARD CIRCLES ===== */

.stats-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    animation: popIn 0.6s ease-in-out;
}

.stat-circle h2 {
    font-size: 32px;
    margin: 0;
}

.stat-circle p {
    font-size: 13px;
    margin-top: 8px;
}

/* Hover Scale Effect */
.stat-circle:hover {
    transform: scale(1.08);
}

/* Colors */
.red { background: #b11a2d; }
.green { background: #28a745; }
.orange { background: #f79019; }
.gray { background: #6c757d; }

/* Animation */
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ===== PROFESSIONAL ACTION BAR ===== */

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.left-actions,
.right-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Professional Buttons */

.btn-primary {
    background: #b11a2d;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #8f1424;
}

.btn-secondary {
    background: #f79019;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #d96d0e;
}

.btn-outline {
    border: 1px solid #b11a2d;
    color: #b11a2d;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #b11a2d;
    color: white;
}
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-bar input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.search-bar button {
    background: #b11a2d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.search-bar button:hover {
    background: #8f1424;
}
/* ===== PROFESSIONAL TABLE ===== */

.table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 20px;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead {
    background: #b11a2d;
    color: white;
}

.modern-table th {
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

.modern-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.modern-table tbody tr {
    transition: background 0.3s;
}

.modern-table tbody tr:hover {
    background: #f9f9f9;
}

/* ===== STATUS BADGES ===== */

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.active {
    background: #e6f4ea;
    color: #28a745;
}

.badge-status.graduated {
    background: #fff3cd;
    color: #f79019;
}

.badge-status.suspended {
    background: #fdecea;
    color: #dc3545;
}

/* ===== TABLE ACTION BUTTONS ===== */

.table-btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    color: white;
    margin-right: 5px;
    transition: 0.3s;
}

.table-btn.edit {
    background: #f79019;
}

.table-btn.edit:hover {
    background: #d96d0e;
}

.table-btn.delete {
    background: #dc3545;
}

.table-btn.delete:hover {
    background: #b02a37;
}

.no-data {
    text-align: center;
    padding: 20px;
}
/* ===== ACTION BUTTON SPACING ===== */

.action-buttons {
    display: flex;
    gap: 10px;
}

.table-btn {
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    color: white;
    transition: 0.3s;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ACTION BUTTON SPACING ===== */

.action-cell {
    white-space: nowrap;
}

.action-cell .table-btn {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
}

.action-cell .table-btn:last-child {
    margin-right: 0;
}

/* Button Colors */
.table-btn.edit {
    background: #f79019;
}

.table-btn.delete {
    background: #dc3545;
}