/* Custom CSS for SSL Records Manager */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

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

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Status badges and indicators */
.badge-expired {
    background-color: var(--danger-color);
    color: white;
    font-weight: 600;
}

.badge-expiring {
    background-color: var(--warning-color);
    color: white;
    font-weight: 600;
}

.badge-active {
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
}

.text-expired {
    color: var(--danger-color) !important;
    font-weight: 600;
}

.text-expiring {
    color: var(--warning-color) !important;
    font-weight: 600;
}

.text-active {
    color: var(--success-color) !important;
    font-weight: 600;
}

/* Row highlighting for expired SSLs */
.table tbody tr.expired {
    background-color: rgba(220, 53, 69, 0.1);
}

.table tbody tr.expiring {
    background-color: rgba(253, 126, 20, 0.1);
}

/* Button styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

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

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover {
    transform: translateY(-1px);
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: var(--light-color);
}

.modal-title {
    font-weight: 600;
    color: var(--dark-color);
}

/* Form styles */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Responsive design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between h2 {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

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

#noDataMessage i {
    opacity: 0.5;
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Details view styling */
.detail-row {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #6c757d;
}

/* File download links */
.file-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.file-link:hover {
    text-decoration: underline;
}

/* Search and filter section */
.card-body .row.g-3 {
    align-items: end;
}

/* Custom scrollbar for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.navbar-nav .nav-link.active {
    border-bottom: 2px solid #0d6efd;
    color: #0d6efd !important;
}


