/* 
 * Blocklist Manager - Light Theme Stylesheet
 * 
 * This file contains styles for the light theme of the Blocklist Manager application.
 */

/* ===== General Styles ===== */
:root {
    --primary-color: #4a5568;
    --secondary-color: #718096;
    --accent-color: #3182ce;
    --success-color: #48bb78;
    --danger-color: #e53e3e;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --light-color: #f7fafc;
    --dark-color: #2d3748;
    --gray-color: #a0aec0;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-muted: #718096;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --header-bg: #f8f9fa;
    --footer-bg: #f8f9fa;
}

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

a {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #2c5282;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
}

/* Three-column layout */
.three-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .three-column-layout {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

/* ===== Header ===== */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* ===== Footer ===== */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer .social-links a {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ===== Forms ===== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 0.375rem;
    border: none;
}

.alert-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(229, 62, 62, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
}

/* ===== Tables ===== */
.table {
    color: var(--text-color);
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ===== Home Page ===== */
.hero-section {
    background-color: var(--light-color);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== Dashboard ===== */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-card {
    height: 100%;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.dashboard-card .card-text {
    flex-grow: 1;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Blocklist ===== */
.blocklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blocklist-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 0.5rem;
}

.blocklist-item {
    margin-bottom: 1rem;
}

.blocklist-item .badge {
    margin-right: 0.5rem;
}

.blocklist-actions {
    white-space: nowrap;
}

/* ===== Blog ===== */
.blog-post {
    margin-bottom: 2rem;
}

.blog-post-header {
    margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-post-content {
    margin-bottom: 1.5rem;
}

.blog-sidebar-section {
    margin-bottom: 2rem;
}

.blog-sidebar-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-categories-list {
    list-style: none;
    padding-left: 0;
}

.blog-categories-list li {
    margin-bottom: 0.5rem;
}

.blog-categories-list .badge {
    float: right;
}

/* ===== Comments ===== */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-content {
    margin-bottom: 0.5rem;
}

.comment-actions {
    text-align: right;
}

.comment-replies {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

/* ===== Notifications ===== */
.notification-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.notification-item.unread {
    background-color: rgba(66, 153, 225, 0.05);
    border-left: 3px solid var(--accent-color);
}

.notification-icon {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.notification-content {
    flex-grow: 1;
}

.notification-message {
    margin-bottom: 0.25rem;
}

.notification-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.notification-actions {
    margin-left: 1rem;
}

.toast-container {
    z-index: 1050;
}

/* ===== Auth Pages ===== */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card {
    padding: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== Profile ===== */
.profile-header {
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-tabs {
    margin-bottom: 1.5rem;
}

/* ===== Admin Panel ===== */
.admin-sidebar {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.admin-sidebar .nav-link {
    color: var(--text-color);
    padding: 0.5rem 0;
}

.admin-sidebar .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

.admin-content {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ===== Utilities ===== */
.text-muted {
    color: var(--text-muted) !important;
}

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

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

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

/* ===== AdSense ===== */
.adsense-container {
    margin: 2rem 0;
    text-align: center;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767.98px) {
    .card-deck {
        display: block;
    }
    
    .card-deck .card {
        margin-bottom: 1rem;
    }
}