/**
 * IZ Shared Styles
 * Common CSS styles shared across all IZ web applications
 * Provides consistent styling foundation for Flask apps
 */

/* Base Typography */
body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    color: #003366;
}

/* USTFCCCA Brand Colors */
.ustfccca-primary {
    color: #003366;
}

.ustfccca-secondary {
    color: #0066cc;
}

.ustfccca-accent {
    color: #ff6600;
}

/* Shared Layout Components */
.breadcrumb-nav {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.breadcrumb-nav a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

/* Shared Button Styles */
.btn-ustfccca-primary {
    background-color: #003366;
    border-color: #003366;
    color: white;
}

.btn-ustfccca-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

.btn-ustfccca-secondary {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-ustfccca-secondary:hover {
    background-color: #0055aa;
    border-color: #0055aa;
}

/* Shared Alert Styles */
.alert-ustfccca {
    border-left: 4px solid #003366;
    background-color: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
}

.alert-ustfccca .alert-title {
    font-weight: 600;
    color: #003366;
    margin-bottom: 0.5rem;
}

/* Shared Table Styles */
.table-ustfccca {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.table-ustfccca th {
    background-color: #003366;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.table-ustfccca td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.table-ustfccca tbody tr:hover {
    background-color: #f8f9fa;
}

/* Shared Card Styles */
.card-ustfccca {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem 0;
    overflow: hidden;
}

.card-ustfccca .card-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #003366;
}

.card-ustfccca .card-body {
    padding: 1rem;
}

/* Shared Form Styles */
.form-ustfccca .form-group {
    margin-bottom: 1rem;
}

.form-ustfccca label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-ustfccca input,
.form-ustfccca select,
.form-ustfccca textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-ustfccca input:focus,
.form-ustfccca select:focus,
.form-ustfccca textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .table-ustfccca {
        font-size: 0.9rem;
    }
    
    .card-ustfccca {
        margin: 0.5rem 0;
    }
}

/* Utility Classes */
.text-ustfccca-primary {
    color: #003366 !important;
}

.text-ustfccca-secondary {
    color: #0066cc !important;
}

.bg-ustfccca-primary {
    background-color: #003366 !important;
    color: white !important;
}

.bg-ustfccca-secondary {
    background-color: #0066cc !important;
    color: white !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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