/*
 * NetVerify - Network Verification & Acceptance
 * Custom CSS Styles
 */

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

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

/* Header Styles */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.card-header h5 {
    font-weight: 600;
    color: #495057;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Status Indicators */
.status-success {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-danger {
    color: var(--danger-color);
}

.status-info {
    color: var(--info-color);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-group .btn {
    border-radius: 0.375rem;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #ced4da;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

/* Search Input */
.input-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.035);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    background-color: #fff;
    color: #6c757d;
}

.input-group .btn:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Chart Container */
canvas {
    max-width: 100%;
}

/* Map Container */
#map {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

/* Footer */
footer {
    border-top: 1px solid #dee2e6;
}

footer a {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header .row {
        flex-direction: column;
    }
    
    .card-header .col-md-6:last-child {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .card-footer .row {
        flex-direction: column;
    }
    
    .card-footer .col-md-6:last-child {
        margin-top: 0.5rem;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .float-end {
        float: none !important;
    }
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    margin-right: 0.25rem;
}

.action-btn:last-child {
    margin-right: 0;
}

.action-btn-view {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
    border: none;
}

.action-btn-view:hover {
    background-color: rgba(13, 110, 253, 0.2);
}

.action-btn-compare {
    color: var(--info-color);
    background-color: rgba(13, 202, 240, 0.1);
    border: none;
}

.action-btn-compare:hover {
    background-color: rgba(13, 202, 240, 0.2);
}

.action-btn-export {
    color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
    border: none;
}

.action-btn-export:hover {
    background-color: rgba(25, 135, 84, 0.2);
}

/* MAC Address Formatting */
.mac-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Metric Values */
.metric-value {
    font-weight: 600;
}

.metric-good {
    color: var(--success-color);
}

.metric-average {
    color: var(--warning-color);
}

.metric-poor {
    color: var(--danger-color);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Tooltip Customization */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    max-width: 200px;
    padding: 0.5rem;
    background-color: var(--dark-color);
}

/* Styles added from signoff.html for Report Generator Modal */
.loader { /* Applied globally so it works in all contexts */
    border: 4px solid #f3f3f3; 
    border-radius: 50%; 
    border-top: 4px solid #3498db;
    width: 20px; 
    height: 20px; 
    animation: spin 1s linear infinite;
    display: inline-block; 
    margin-left: 10px; 
    vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.modal-body .report-section { display: none; } /* Scoped to modal */
.modal-body #vsamSection.report-section { display: block !important; } /* Force VSAM section to be visible */
.modal-body #handoverSection.report-section { display: none !important; } /* Force handover section to be hidden */

.modal-body label.required::after { content: " *"; color: red; } /* Scoped to modal */

.modal-body input[type="file"] { /* Scoped to modal */
    padding: 8px; border: 1px solid #d1d5db; border-radius: 0.375rem;
    background-color: white; width: 100%; margin-bottom: 0.5rem;
}
.modal-body input[type="file"]::file-selector-button { /* Scoped to modal */
    margin-right: 8px; border: none; background: #e0e7ff; padding: 6px 12px;
    border-radius: 0.375rem; color: #4338ca; cursor: pointer; transition: background .2s ease-in-out;
}
.modal-body input[type="file"]::file-selector-button:hover { background: #c7d2fe; } /* Scoped to modal */

.modal-body input[type="text"], 
.modal-body input[type="date"], 
.modal-body input[type="time"], 
.modal-body input[type="number"], 
.modal-body select, 
.modal-body textarea { /* Scoped to modal */
     padding: 0.5rem; border: 1px solid #d1d5db; width: 100%; /* Ensure inputs take full width */
}

/* Style for buttons within the modal form */
.modal-body button { transition: background-color 0.2s ease-in-out; } /* Scoped to modal */
.modal-body button:disabled { opacity: 0.5; cursor: not-allowed; } /* Scoped to modal */

/* Add specific width to select/input containers if needed */
.modal-body .grid > div { min-width: 0; } /* Allow grid items to shrink */ /* Scoped to modal */

/* Style for validation errors within the modal form */
.modal-body input.border-red-500, 
.modal-body select.border-red-500, 
.modal-body textarea.border-red-500 { /* Scoped to modal */
    border-color: #f56565; /* Tailwind red-500 */
}
/* End Styles added from signoff.html */
