/* ── AWS Backup Manager Custom Styles ─────────────────── */

:root {
  --primary: #007bff;
  --success: #28a745;
  --warning: #ffc107;
  --danger:  #dc3545;
  --info:    #17a2b8;
}

/* Sidebar tweaks */
.main-sidebar { background: linear-gradient(180deg, #1a2035 0%, #1c2755 100%); }
.brand-link { background: linear-gradient(90deg, #007bff, #0056b3) !important; }
.nav-sidebar .nav-link.active { background: rgba(255,255,255,0.15); border-radius: 6px; }
.user-panel .info a { font-size: 0.9rem; }
.nav-header { color: rgba(255,255,255,0.4) !important; font-size: 0.7rem; letter-spacing: 1px; }

/* Cards */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.card-header { border-radius: 12px 12px 0 0 !important; font-weight: 600; }
.card-header.bg-gradient-primary { background: linear-gradient(135deg, #007bff, #0056b3) !important; }
.card-header.bg-gradient-success { background: linear-gradient(135deg, #28a745, #1e7e34) !important; }
.card-header.bg-gradient-info    { background: linear-gradient(135deg, #17a2b8, #117a8b) !important; }
.card-header.bg-gradient-warning { background: linear-gradient(135deg, #ffc107, #e0a800) !important; }
.card-header.bg-gradient-danger  { background: linear-gradient(135deg, #dc3545, #bd2130) !important; }
.card-header.bg-gradient-dark    { background: linear-gradient(135deg, #343a40, #23272b) !important; }

/* Info boxes */
.info-box { border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); border: none; }
.info-box-icon { border-radius: 12px 0 0 12px; }
.info-box-number { font-size: 1.8rem; font-weight: 700; }

/* Small stat boxes */
.small-box { border-radius: 12px; overflow: hidden; }
.small-box .inner h3 { font-size: 2.2rem; font-weight: 700; }
.small-box .icon { opacity: 0.2; }
.small-box:hover { transform: translateY(-2px); transition: 0.2s; }

/* Tables */
.table thead th { background: #343a40; color: white; border: none; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table tbody tr:hover { background: #f8f9ff; }
.table td { vertical-align: middle; }
.table-sm td, .table-sm th { padding: 0.5rem 0.75rem; }

/* Badges */
.badge { font-size: 0.75rem; font-weight: 600; padding: 0.35em 0.65em; border-radius: 20px; }

/* Buttons */
.btn { border-radius: 8px; font-weight: 600; font-size: 0.82rem; }
.btn-sm { border-radius: 6px; font-size: 0.78rem; }
.btn-xs { padding: 2px 8px; font-size: 0.72rem; border-radius: 4px; }
.btn-action-group .btn { margin: 1px; }

/* Progress bars */
.progress { border-radius: 10px; background: #e9ecef; }
.progress-bar { border-radius: 10px; transition: width 0.5s ease; }
.progress-sm { height: 6px; }
.progress-xs { height: 4px; }

/* Status indicators */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.running { background: #28a745; box-shadow: 0 0 6px #28a745; animation: pulse 2s infinite; }
.status-dot.stopped { background: #6c757d; }
.status-dot.pending { background: #ffc107; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Alarm state */
.alarm-insufficient { color: #fd7e14; font-weight: 700; }
.alarm-alarm { color: #dc3545; font-weight: 700; }
.alarm-ok { color: #28a745; }

/* Volume chips */
.volume-chip { display: inline-block; background: #e9ecef; border-radius: 20px; padding: 2px 10px; font-size: 0.72rem; margin: 1px; font-family: 'Courier New', monospace; }

/* Job log */
.log-container { background: #1e1e2e; border-radius: 8px; padding: 12px; max-height: 350px; overflow-y: auto; }
.log-entry { font-family: 'Courier New', monospace; font-size: 0.78rem; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #cdd6f4; }
.log-entry .log-time { color: #6c7086; }
.log-entry.INFO .log-badge { background: #17a2b8; }
.log-entry.ERROR { color: #f38ba8; }
.log-entry.ERROR .log-badge { background: #dc3545; }
.log-entry.WARNING { color: #fab387; }
.log-entry.WARNING .log-badge { background: #ffc107; color: #000; }

/* Content header */
.content-header { padding: 15px 20px 5px; }
.content-header h1 { font-size: 1.5rem; font-weight: 700; }

/* Main footer */
.main-footer { font-size: 0.85rem; }

/* Modals */
.modal-content { border-radius: 12px; border: none; }
.modal-header { border-radius: 12px 12px 0 0; }
.modal-footer { border-radius: 0 0 12px 12px; }

/* Filter bar */
.filter-bar { background: white; padding: 12px 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; }

/* Region route badge */
.region-route { background: linear-gradient(90deg, #fff3cd, #d4edda); border: 1px solid #dee2e6; border-radius: 20px; padding: 4px 14px; font-size: 0.82rem; font-weight: 600; }

/* Responsive */
@media (max-width: 576px) {
  .btn-action-group .btn span { display: none; }
  .info-box-number { font-size: 1.4rem; }
}
