/* Custom styles for Device Management System */

/* General layout and spacing */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container-fluid {
    padding: 0 20px;
}

.navbar-brand {
    font-weight: 600;
    padding-left: 10px;
}

/* Card styling */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

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

/* Dashboard stats cards */
.stats-card {
    border-radius: 8px;
    overflow: hidden;
}

.stats-card .card-title {
    font-size: 1rem;
    font-weight: 600;
}

.stats-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Tables */
.table-responsive {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
}

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

/* Form styling */
.form-control, .form-select {
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

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

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

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    padding: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-card .display-4 {
        font-size: 2rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    .d-flex.justify-content-between > div {
        margin-top: 10px;
    }
}

/* Barcode page styling */
.barcode-container {
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    display: inline-block;
    margin: 0 auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .card {
        box-shadow: none !important;
        border: none !important;
    }
}
