/* Main site styles - Base styling for Spotlight Dashboard */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container and layout */
.container {
    max-width: 1200px;
}

.main-content-container {
    background: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #005f66;
    border-color: #005f66;
}

.btn-container {
    margin-bottom: 20px;
}

.btn-container .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Form elements */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007883;
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 131, 0.25);
}

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

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

.table-responsive {
    border-radius: 5px;
    overflow: hidden;
}

/* Cards and panels */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

/* Utility classes */
.text-primary {
    color: #007883 !important;
}

.bg-primary {
    background-color: #007883 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content-container {
        margin: 10px 0;
        padding: 20px;
    }
    
    .btn-container .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 120, 131, 0.3);
    border-radius: 50%;
    border-top-color: #007883;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CSRF token hidden input */
input[name="csrfmiddlewaretoken"] {
    display: none;
}