/* E-click Soluções Backup Manager - Custom Styles */

/* Logo and Brand Styles */
.brand-logo {
    margin-right: 12px;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.modern-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
    margin-top: -2px;
}

/* Navbar customizations */
.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

/* Card customizations */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Status badges */
.badge {
    font-size: 0.75em;
}

/* Table customizations */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Button customizations */
.btn-group .btn {
    margin-right: 0;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Modal customizations */
.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Form customizations */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert customizations */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom border colors for cards */
.border-left-primary {
    border-left: 0.25rem solid #007bff !important;
}

.border-left-success {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-info {
    border-left: 0.25rem solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

/* Text utilities */
.text-xs {
    font-size: 0.75rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Modern footer aligned with public site */
.modern-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    padding: 1rem 0;
    margin-top: 2rem;
}

.modern-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-footer .footer-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.modern-footer .footer-text {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .modern-footer .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .card-header {
        background-color: #4a5568;
        border-bottom-color: #718096;
    }
    
    .table th {
        background-color: #4a5568;
        color: #e2e8f0;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Status indicators */
.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* File size formatting */
.file-size {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Code blocks */
code {
    background-color: #f8f9fa;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Progress bars */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Tooltips */
.tooltip {
    font-size: 0.875rem;
}

/* Custom spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}
/* ===== 
MODERN SCHEDULE MODAL STYLES ===== */

/* Modal modernization */
.schedule-modal .modal-dialog {
    max-width: 900px;
}

.schedule-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    overflow: hidden;
}

.schedule-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.schedule-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.schedule-modal .btn-close:hover {
    opacity: 1;
}

/* Form sections with cards */
.form-section {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-section:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: #667eea;
    font-size: 1.2rem;
}

/* Modern form controls */
.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.modern-select {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.modern-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Frequency type selector */
.frequency-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.frequency-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.frequency-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.frequency-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.frequency-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.frequency-option .title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.frequency-option .description {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Cron presets */
.cron-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cron-preset {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.cron-preset:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.cron-preset.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Schedule preview */
.schedule-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
}

.schedule-preview .preview-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Backup options grid */
.backup-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.backup-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.backup-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.backup-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.backup-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Advanced settings toggle */
.advanced-toggle {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.advanced-toggle:hover {
    background: #e9ecef;
}

.advanced-toggle i {
    transition: transform 0.3s ease;
}

.advanced-toggle.expanded i {
    transform: rotate(180deg);
}

/* Modal footer */
.schedule-modal .modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem 2rem;
}

.schedule-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.schedule-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.3);
}

.schedule-modal .btn-secondary {
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: slideInUp 0.4s ease-out;
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .frequency-selector {
        grid-template-columns: 1fr;
    }
    
    .cron-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .backup-options {
        grid-template-columns: 1fr;
    }
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    z-index: 10;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success states */
.success-checkmark {
    color: #28a745;
    font-size: 1.2rem;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}/* 
===== MODERN BASE TEMPLATE STYLES ===== */

/* Global modern styles */
.modern-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern Navbar */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #2d3748 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    color: #667eea !important;
    transform: translateY(-1px);
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.brand-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: #718096;
}

/* Modern Navigation */
.modern-nav {
    gap: 0.5rem;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem;
    color: #4a5568 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.modern-nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-nav-link:hover::before {
    width: 100%;
}

.modern-nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modern-nav-link i {
    font-size: 1.1rem;
}

/* Modern User Menu */
.modern-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem;
    color: #4a5568 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.modern-user-menu:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea !important;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 600;
}

/* Modern Dropdown */
.modern-dropdown {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.modern-dropdown .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.modern-dropdown .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(4px);
}

.modern-dropdown .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Modern Main Content */
.modern-main {
    flex: 1;
    padding: 2rem 0;
    background: transparent;
}

/* Modern Alerts */
.alerts-container {
    margin-bottom: 2rem;
}

.modern-alert {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    margin-bottom: 1rem;
}

.modern-alert.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.modern-alert.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.modern-alert.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.modern-alert.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Modern Footer */
.modern-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #4a5568;
}

.footer-text {
    color: #718096;
    font-size: 0.875rem;
}

/* Modern Toggler */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
}

.modern-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .modern-nav {
        margin-top: 1rem;
        flex-direction: column;
        width: 100%;
    }
    
    .modern-nav-link {
        justify-content: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modern-main {
        padding: 1rem 0;
    }
}

/* Page transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-main > .container-fluid {
    animation: pageEnter 0.5s ease-out;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* ===== THEME OVERRIDES ===== */
/* Classic theme: barra escura, texto claro, footer escuro */
.theme-classic .modern-navbar {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

.theme-classic .modern-navbar .navbar-brand,
.theme-classic .modern-navbar .nav-link,
.theme-classic .brand-title,
.theme-classic .brand-subtitle,
.theme-classic .modern-user-menu,
.theme-classic .modern-nav-link {
    color: #ffffff !important;
}

.theme-classic .modern-toggler {
    background: rgba(255, 255, 255, 0.15) !important;
}

.theme-classic.modern-app {
    background: linear-gradient(135deg, #e5e7eb 0%, #cfd4db 100%) !important;
}

.theme-classic .modern-footer {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-top: none !important;
}

.theme-classic .footer-brand,
.theme-classic .footer-text {
    color: #e5e7eb !important;
}

.theme-classic .modern-nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* 
===== MODERN DASHBOARD STYLES ===== */

/* Modern Page Header */
.modern-page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.page-title-text {
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Modern Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-primary::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-success::before {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.stat-card-info::before {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.stat-card-warning::before {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.stat-trend i {
    color: #48bb78;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #667eea;
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
    color: #48bb78;
}

.stat-card-info .stat-icon {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    color: #4299e1;
}

.stat-card-warning .stat-icon {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(221, 107, 32, 0.1) 100%);
    color: #ed8936;
}

.stat-card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.stat-link:hover {
    color: #5a67d8;
    transform: translateX(4px);
}

/* Modern Sections */
.modern-section {
    margin-bottom: 2rem;
}

.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.modern-card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modern-card-body {
    padding: 2rem;
}

/* Modern Buttons */
.modern-btn {
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-btn-sm {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modern-btn:hover,
.modern-btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary.modern-btn,
.btn-primary.modern-btn-sm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary.modern-btn:hover,
.btn-primary.modern-btn-sm:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-secondary.modern-btn-sm {
    border: 2px solid #e2e8f0;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-secondary.modern-btn-sm:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title-section {
        width: 100%;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modern-card-body {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
}/* ===== INTERVAL PRESETS STYLES ===== */

.interval-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.interval-preset {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.interval-preset:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.interval-preset.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.interval-preset i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.interval-preset div {
    font-weight: 600;
}

/* Interval preview */
#intervalPreview {
    border-radius: 0.75rem;
    border: none;
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

/* Input limits styling */
.modern-input[max] {
    position: relative;
}

.modern-input:invalid {
    border-color: #dc3545;
}

.modern-input:valid {
    border-color: #28a745;
}

/* Responsive interval presets */
@media (max-width: 768px) {
    .interval-presets {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .interval-preset {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .interval-preset i {
        font-size: 1.25rem;
    }
}/* ===== DATABASE TYPE SELECTOR STYLES ===== */

.database-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.db-type-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.db-type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.db-type-option > * {
    position: relative;
    z-index: 1;
}

.db-type-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.db-type-option:hover::before {
    width: 100%;
}

.db-type-option:hover > * {
    color: white;
}

.db-type-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.db-type-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.db-type-option .title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.db-type-option .description {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.2;
}

/* Database specific icons colors */
.db-type-option[data-type="postgresql"] i {
    color: #336791;
}

.db-type-option[data-type="mysql"] i {
    color: #4479a1;
}

.db-type-option[data-type="mariadb"] i {
    color: #003545;
}

.db-type-option[data-type="sqlserver"] i {
    color: #cc2927;
}

.db-type-option[data-type="oracle"] i {
    color: #f80000;
}

.db-type-option[data-type="mongodb"] i {
    color: #47a248;
}

.db-type-option.active i,
.db-type-option:hover i {
    color: white !important;
}

/* Connection modal specific styles */
.schedule-modal#addConnectionModal .modal-dialog {
    max-width: 800px;
}

/* Responsive database selector */
@media (max-width: 768px) {
    .database-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .db-type-option {
        padding: 1rem 0.75rem;
    }
    
    .db-type-option i {
        font-size: 1.5rem;
    }
    
    .db-type-option .title {
        font-size: 0.9rem;
    }
    
    .db-type-option .description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .database-type-selector {
        grid-template-columns: 1fr;
    }
}/* 
===== LOADING ANIMATIONS ===== */

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Connection test button states */
#testConnectionBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#testConnectionBtn .spin {
    display: inline-block;
}