/* Custom styles for Backup Solution */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 500;
}

.footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* Dashboard cards */
.card .fa-3x {
    opacity: 0.8;
}

/* Tables */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

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

/* Buttons */
.btn {
    border-radius: 0.25rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 0.25rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
}

/* Tabs */
.nav-tabs .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #f8f9fa;
}

/* Modals */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

/* Modal fixes */
.modal-backdrop {
    z-index: 1040;
    opacity: 0.5 !important;
}

.modal {
    z-index: 1050;
}

.modal-dialog {
    z-index: 1051;
    position: relative;
}

.modal-content {
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    position: relative;
    background-color: #fff;
    border-radius: 6px;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Progress bars */
.progress {
    height: 0.75rem;
    border-radius: 0.25rem;
}

/* Custom animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Custom styles for the scheduled backups feature */
.form-switch .form-check-input {
    width: 3em;
}

.toast-container {
    z-index: 1100;
}

.schedule-badge {
    font-size: 0.9em;
    padding: 0.5em 0.7em;
}

.schedule-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.schedule-time {
    font-family: monospace;
    font-weight: bold;
}

.schedule-retention {
    font-weight: bold;
}

/* Responsive adjustments for schedules */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9em;
    }
    
    .schedule-actions .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Scheduled Backups Styles */
.schedule-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}

.schedule-time {
    font-weight: 600;
    color: #495057;
}

.schedule-retention {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.schedule-actions .btn {
    padding: 0.25rem 0.5rem;
}

.toggle-schedule {
    cursor: pointer;
}

/* Dashboard Widgets */
.dashboard-widget {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.dashboard-widget .card-header {
    border-bottom: none;
}

.dashboard-widget .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

.dashboard-widget .list-group-item:first-child {
    border-top: none;
}

.dashboard-widget .list-group-item:last-child {
    border-bottom: none;
}

/* System Info Table */
#system-info table {
    margin-bottom: 0;
}

#system-info td:first-child {
    font-weight: 600;
    width: 40%;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    min-width: 250px;
}

/* Notification styles */
.notification-dropdown {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.notification-menu {
    width: 320px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f8f9fa;
}

.notification-icon {
    margin-right: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.notification-list .list-group-item.unread {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}

/* Recent Backups */
#recent-backups .list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#recent-backups .list-group-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    border-left-color: #0d6efd;
}

#recent-backups .text-truncate {
    max-width: 200px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
}

#recent-backups .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    text-transform: capitalize;
}

#recent-backups .text-muted {
    font-size: 0.8rem;
}

#recent-backups .list-group {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#recent-backups .list-group::-webkit-scrollbar {
    width: 6px;
}

#recent-backups .list-group::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#recent-backups .list-group::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#recent-backups .list-group::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
