/* General Styles */
:root {
    --primary-color: #1e293b;
    --primary-light: #334155;
    --primary-dark: #0f172a;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-light: rgba(96, 165, 250, 0.1);
    --white: #ffffff;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-800: #1e293b;
    --grey-900: #0f172a;
    --box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    --box-shadow-hover: 0 0 30px 0 rgba(0, 0, 0, 0.3);
    --card-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--grey-100);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, sans-serif;
    color: var(--grey-800);
    line-height: 1.6;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #0d6efd;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--grey-900);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Navbar Styles */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--white) !important;
    font-weight: 700;
}

.navbar-brand i {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: var(--text-light) !important;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--white) !important;
    background: var(--primary-light);
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
    color: var(--grey-800);
}

/* Poem Card Styles */
.poem-card {
    border-radius: 1rem;
    background: var(--white);
    margin-bottom: 20px;
    overflow: hidden;
}

.poem-card .card-header {
    background: var(--grey-100);
    padding: 1.5rem;
}

.poem-card .card-title {
    color: var(--grey-900);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.poem-card .card-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--grey-800);
}

.poem-content {
    white-space: pre-line;
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--grey-800);
    padding: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--accent-color);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--primary-color);
    border-radius: 0.85rem;
}

.stats-poems, .stats-users, .stats-views {
    background: var(--white) !important;
    color: var(--grey-900);
}

.stats-poems i, .stats-users i, .stats-views i {
    color: var(--accent-color);
    opacity: 0.9;
}

/* Table Styles */
.table {
    color: var(--grey-800);
    background: var(--white);
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--grey-900);
    background: var(--grey-100);
    padding: 1rem;
    border-bottom: 2px solid var(--grey-200);
}

.table td {
    padding: 1rem;
    border-color: var(--grey-200);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--grey-100);
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--grey-300);
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--grey-800);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    background: var(--white);
    color: var(--grey-900);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-label {
    color: var(--grey-900);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* Badge Styles */
.badge {
    padding: 0.5em 1em;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background: #0bb783 !important;
}

.bg-warning {
    background: #ffa800 !important;
}

.bg-danger {
    background: #f64e60 !important;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--grey-200);
}

.page-header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 0;
    border-top: 1px solid var(--grey-200);
    margin-top: auto;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    border-left: 4px solid var(--accent-color);
    color: var(--text-light);
}

/* Live Clock */
#live-clock {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 