/* Basic styles */
body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: none;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td, .table th {
    vertical-align: middle;
    padding: 0.75rem;
}

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

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

textarea {
    min-height: 100px;
}

/* Buttons */
.btn {
    border-radius: 4px;
}

/* Text utilities */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

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

.modal pre {
    margin: 0;
    white-space: pre-wrap;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #0d6efd;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 4rem;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .table {
        font-size: 14px;
    }

    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 12px;
    }
    
    .text-truncate {
        max-width: 150px;
    }
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
