/**
 * Admin Dashboard Styles
 * PROG2002 Assessment 3
 * Using Bulma CSS Framework
 */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

.section {
    flex: 1;
}

/* Navbar customization */
.navbar.is-dark {
    background: linear-gradient(90deg, #363636 0%, #4a4a4a 100%);
}

.navbar-item.is-active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

/* Hero section */
.hero.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Box styles */
.box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Statistics boxes */
.box.has-text-centered {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box.has-text-centered:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-bottom: 0.5rem;
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

.table {
    background-color: white;
}

.table thead th {
    background-color: #363636;
    color: white;
    border-color: #363636;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.table td {
    vertical-align: middle;
}

/* Button styles */
.buttons.are-small {
    margin-bottom: 0;
}

.buttons.are-small .button {
    margin-bottom: 0;
}

.button {
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

/* Modal styles */
.modal-card {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card-head {
    background-color: #667eea;
    color: white;
}

.modal-card-title {
    color: white;
}

.modal-card-body {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

/* Form styles */
.field {
    margin-bottom: 1.5rem;
}

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

.input:focus,
.textarea:focus,
.select select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.125em rgba(102, 126, 234, 0.25);
}

/* Tag styles */
.tag {
    font-weight: 600;
}

/* Status tags */
.tag.is-success {
    background-color: #48c774;
}

.tag.is-warning {
    background-color: #ffdd57;
    color: #363636;
}

.tag.is-danger {
    background-color: #f14668;
}

.tag.is-info {
    background-color: #3298dc;
}

.tag.is-primary {
    background-color: #667eea;
}

/* Footer */
.footer {
    background-color: #363636;
    color: #f5f5f5;
    margin-top: auto;
    padding: 2rem 1.5rem;
}

.footer p {
    color: #f5f5f5;
}

/* Loading state */
.is-loading {
    pointer-events: none;
    opacity: 0.5;
}

/* Notification positioning */
.notification {
    margin-bottom: 1rem;
}

/* Level component */
.level {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .modal-card {
        max-width: 95%;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .buttons.are-small .button {
        padding: 0.25rem 0.5rem;
    }
    
    .box.has-text-centered .title {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utility classes */
.mt-6 {
    margin-top: 3rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

/* Scrollbar styling */
.modal-card-body::-webkit-scrollbar {
    width: 8px;
}

.modal-card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-card-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-card-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

