/* ========================================
   MAIN STYLES
   ======================================== */

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Container styles */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card styles */
.main-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.main-card:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.main-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
}

.main-card .card-header h3 {
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Button styles */
.btn-main-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-main-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-main-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-main-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-main-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-main-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-main-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-main-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-main-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-main-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
    color: white;
}

/* Form styles */
.main-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.main-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.main-form .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Alert styles */
.alert-main-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.alert-main-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
}

.alert-main-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.alert-main-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-radius: 8px;
    color: #0c5460;
}

/* Table styles */
.main-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-table thead th {
    background-color: #343a40;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: white;
}

.main-table tbody tr {
    transition: background-color 0.2s ease;
}

.main-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* List group styles */
.main-list-group .list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.main-list-group .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.main-list-group .list-group-item-action {
    color: #495057;
    text-decoration: none;
}

.main-list-group .list-group-item-action:hover {
    color: #007bff;
}

/* Badge styles */
.badge-main-primary {
    background-color: #007bff;
}

.badge-main-secondary {
    background-color: #6c757d;
}

.badge-main-success {
    background-color: #28a745;
}

.badge-main-danger {
    background-color: #dc3545;
}

.badge-main-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-main-info {
    background-color: #17a2b8;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shadow-medium {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.shadow-strong {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.border-radius-lg {
    border-radius: 12px;
}

.border-radius-xl {
    border-radius: 16px;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }
    
    .main-card {
        margin: 10px 0;
    }
    
    .btn-main-primary,
    .btn-main-secondary,
    .btn-main-success,
    .btn-main-danger,
    .btn-main-info {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Print styles */
@media print {
    .main-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .btn-main-primary,
    .btn-main-secondary,
    .btn-main-success,
    .btn-main-danger,
    .btn-main-info {
        display: none;
    }
}

