/* Dashboard specific styles */

.stats-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #2dc653, #28a745);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #4cc9f0, #17a2b8);
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.content-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table th {
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.modal-lg {
    max-width: 800px;
}

.text-break {
    word-break: break-word;
}

/* Dark mode support */
body.dark-mode .stats-card {
    background-color: #2b3035;
    border-color: #495057;
}

body.dark-mode .card-title {
    color: #f8f9fa;
}

body.dark-mode .table {
    color: #f8f9fa;
}

body.dark-mode .table th {
    border-bottom-color: #495057;
}

body.dark-mode .table td {
    border-top-color: #495057;
}

body.dark-mode .modal-content {
    background-color: #2b3035;
    color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .btn-group-sm {
        flex-direction: column;
    }
    
    .btn-group-sm .btn {
        margin-bottom: 0.25rem;
        border-radius: 0.375rem !important;
    }
    
    .content-preview {
        max-width: 150px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading states */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast container positioning */
.toast-container {
    z-index: 1055;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Button hover effects */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Table hover effect */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

body.dark-mode .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Form styles in modals */
.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-1px);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Empty state styling */
#noQRCodes {
    padding: 3rem 1rem;
}

#noQRCodes i {
    opacity: 0.5;
}

/* QR code image styling */
.table img {
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

body.dark-mode .table img {
    border-color: #495057;
}
