/* main.css - Common styling for all templates */

:root {
    --primary-color: #0066cc;
    --secondary-color: #003366;
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
    color: var(--primary-color);
}

/* Content containers */
.content-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Section styling */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Buttons */
.btn, .btn-primary, .edit-button, .submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn:hover, .btn-primary:hover, .edit-button:hover, .submit-button:hover {
    background-color: var(--secondary-color);
}

.btn-secondary, .cancel-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover, .cancel-button:hover {
    background-color: #e5e5e5;
}

.btn-danger, .delete-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn-danger:hover, .delete-button:hover {
    background-color: #d32f2f;
}

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

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Tables */
.data-table {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    color: #333;
}

/* Status indicators */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.status-inactive {
    background-color: #ffebee;
    color: #c62828;
}

.status-pending {
    background-color: #fff8e1;
    color: #f57f17;
}

.status-completed {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.status-failed {
    background-color: #ffebee;
    color: #c62828;
}

.status-processing {
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* Flash messages */
.flash-messages {
    margin-bottom: 1rem;
}

.flash-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.flash-success {
    background-color: #e6f7e6;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.flash-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.flash-warning {
    background-color: #fff8e1;
    color: #f57f17;
    border-left: 4px solid #f57f17;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card h2, .card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Info boxes */
.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    color: #2196f3;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
    }
}
