/* General Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Blog Card Styles */
.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.blog-card .card-text {
    color: #6b7280;
    font-size: 0.95rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-dark {
    background-color: #1f2937;
    border: none;
}

.btn-dark:hover {
    background-color: #111827;
}

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

/* Footer Styles */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #0c4a6e;
}

/* Form Styles */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.table thead th {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: #374151;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .blog-card img {
        height: 150px;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Admin Panel Specific */
.sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

.sidebar h4 {
    color: var(--primary-color);
}

.sidebar .nav-link {
    color: #d1d5db !important;
    padding: 0.75rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color);
}

/* Utility Classes */
.text-muted {
    color: #9ca3af;
}

.bg-light {
    background-color: var(--light-bg);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

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

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

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

/* Success/Error Messages */
.success-message {
    color: var(--success-color);
    font-weight: 600;
}

.error-message {
    color: var(--danger-color);
    font-weight: 600;
}
