/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white !important;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
}

.btn-warning {
    background: #ffc107;
    border: none;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.btn-danger {
    background: #dc3545;
    border: none;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
}

.btn-info {
    background: #17a2b8;
    border: none;
    color: white;
}

.btn-info:hover {
    background: #138496;
    color: white;
}

.btn-light {
    background: white;
    border: none;
    color: #333;
}

.btn-light:hover {
    background: #f0f0f0;
    color: #333;
}

/* Forms */
.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: #667eea;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.page-link:hover {
    color: #764ba2;
    background-color: #f0f0f0;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* Tables */
table {
    background: white;
    border-collapse: collapse;
    width: 100%;
}

table thead {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table tbody tr:hover {
    background: #f5f5f5;
}

/* Editor Styles */
.ql-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 400px;
    font-size: 16px;
}

.ql-editor {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px;
}

.ql-toolbar {
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    background: white;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: bold;
}

.close {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Utility Classes */
.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

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

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #17a2b8;
}
