/* Custom Styles for PHP OOP Toastr Notification */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}

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

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Badge Styles */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Form Styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Login/Register Card */
.card-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

/* Alert Info */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Opacity utility */
.opacity-50 {
    opacity: 0.5;
}

/* Stats Card */
.card.text-white a {
    transition: opacity 0.3s ease;
}

.card.text-white a:hover {
    opacity: 0.8;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Custom Toastr Position Override */
#toast-container > div {
    opacity: 0.95;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#toast-container > .toast-success {
    background-color: #28a745;
}

#toast-container > .toast-error {
    background-color: #dc3545;
}

#toast-container > .toast-warning {
    background-color: #ffc107;
    color: #212529;
}

#toast-container > .toast-info {
    background-color: #17a2b8;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

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

.card, .alert {
    animation: fadeIn 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar, .btn, .footer {
        display: none;
    }
}
