    :root {
        --bg-primary: rgb(240, 240, 232);
        --bg-secondary: rgb(255, 255, 255);
        --bg-card: rgb(255, 255, 255);
        --text-primary: #000000;
        --text-secondary: rgb(70, 70, 70);
        --text-muted: rgb(143, 123, 120);
        --accent-color: rgb(126, 108, 105);
        --accent-hover: rgb(100, 85, 82);
        --border-color: rgb(143, 123, 120);
        --shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 6px 10px rgba(0, 0, 0, 0.15);
        --gradient: linear-gradient(135deg, rgb(143, 123, 120) 0%, rgb(126, 108, 105) 100%);
    }

    [data-theme="dark"] {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-card: #2d2d2d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --text-muted: #757575;
        --accent-color: #4dabf7;
        --accent-hover: #339af0;
        --border-color: #404040;
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
        --gradient: linear-gradient(135deg, #4c6ef5 0%, #9c88ff 100%);
    }

    * {
        box-sizing: border-box;
    }

    body {
        font-family: "Twemoji Country Flags", Arial, Helvetica, sans-serif;
        background-color: var(--bg-primary);
        color: var(--text-primary);
        line-height: 1.6;
        margin: 0;
        padding-top: 10rem;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .news-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        margin-top: 2rem;
    }

    .news-header {
        text-align: center;
        margin-bottom: 30px;
        padding: 30px;
        background: var(--bg-card);
        border-radius: 5px;
        box-shadow: var(--shadow);
        color: var(--text-primary);
        position: relative;
    }

    .news-header h1 {
        margin: 0 0 10px 0;
        font-size: 2.5rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--accent-color);
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        color: white;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
        z-index: 2;
    }

    .theme-toggle:hover {
        background: var(--accent-hover);
    }

    .controls {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin: 30px 0;
        align-items: center;
        justify-content: space-between;
    }

    .search-container {
        position: relative;
        flex: 1;
        min-width: 300px;
    }

    .search-input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 2px solid var(--border-color);
        border-radius: 5px;
        background: var(--bg-card);
        color: var(--text-primary);
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(126, 108, 105, 0.1);
    }

    .search-button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--accent-color);
        border: none;
        border-radius: 5px;
        width: 35px;
        height: 35px;
        cursor: pointer;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

    .search-button:hover {
        background: var(--accent-hover);
    }

    .filters {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }

    .sort-select {
        padding: 8px 12px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-card);
        color: var(--text-primary);
        cursor: pointer;
    }

    .categories {
        display: flex;
        gap: 10px;
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-link {
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        background: var(--bg-card);
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        border: 2px solid var(--border-color);
    }

    .category-link:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .category-link.active {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }

    .featured-section {
        margin: 30px 0;
    }

    .featured-articles {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin: 20px 0;
    }

    .featured-article {
        position: relative;
        background: var(--bg-card);
        border-radius: 5px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: transform 0.3s ease;
        border: none;
    }

    .featured-article:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .featured-image {
        width: 100%;
        height: 200px;
        background: var(--bg-secondary);
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .featured-badge {
        position: absolute;
        top: 15px;
        left: 15px;
        background: var(--accent-color);
        color: #fff;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .articles {
        display: grid;
        gap: 20px;
    }

    .article {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        background: var(--bg-card);
        border-radius: 5px;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: transform 0.3s ease;
        border: none;
        align-items: start;
    }

    .article:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .article-image {
        width: 120px;
        height: 80px;
        background: var(--bg-secondary);
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

    .article-content {
        flex: 1;
    }

    .article-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 12px;
        color: var(--text-muted);
    }

    .article-title {
        margin: 0 0 10px 0;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
    }

    .article-title a {
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .article-title a:hover {
        color: var(--accent-color);
    }

    .article-summary {
        color: var(--text-secondary);
        margin: 10px 0;
        line-height: 1.5;
    }

    .article-stats {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        min-width: 80px;
    }

    .view-count,
    .read-time {
        font-size: 12px;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px 0;
        gap: 10px;
    }

    .pagination a,
    .pagination span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-secondary);
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .pagination a:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-2px);
    }

    .pagination .current {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }

    .admin-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
        justify-content: center;
        align-items: center;
    }

    .admin-controls form {
        display: inline-flex;
        margin: 0;
        padding: 0;
    }

    .fetch-button,
    .export-button,
    .import-button,
    .delete-button {
        background: var(--accent-color);
        color: white;
        border: 2px solid var(--accent-color);
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        text-decoration: none;
        line-height: 1;
        box-sizing: border-box;
        min-height: 44px;
    }

    .fetch-button:hover,
    .export-button:hover,
    .import-button:hover,
    .delete-button:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover);
        transform: translateY(-2px);
    }

    .delete-button {
        background: #dc3545;
        border-color: #dc3545;
    }

    .delete-button:hover {
        background: #c82333;
        border-color: #c82333;
    }

    .messages {
        margin: 20px 0;
    }

    .message {
        padding: 15px 20px;
        border-radius: 10px;
        margin: 10px 0;
        border-left: 4px solid;
        font-weight: 500;
    }

    .message.success {
        background: rgba(40, 167, 69, 0.1);
        color: #155724;
        border-left-color: #28a745;
    }

    .message.info {
        background: rgba(23, 162, 184, 0.1);
        color: #0c5460;
        border-left-color: #17a2b8;
    }

    .message.error {
        background: rgba(220, 53, 69, 0.1);
        color: #721c24;
        border-left-color: #dc3545;
    }

    .no-articles {
        text-align: center;
        padding: 60px 20px;
        background: var(--bg-card);
        border-radius: 5px;
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow);
    }

    .loading {
        text-align: center;
        padding: 40px;
        color: var(--text-muted);
    }

    @media (max-width: 768px) {
        .news-container {
            padding: 15px;
        }

        .controls {
            flex-direction: column;
            align-items: stretch;
        }

        .search-container {
            min-width: auto;
        }

        .article {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .article-image {
            width: 100%;
            height: 150px;
        }

        .article-stats {
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
            min-width: auto;
        }

        .categories {
            justify-content: flex-start;
            overflow-x: auto;
            padding: 10px 0;
        }

        .featured-articles {
            grid-template-columns: 1fr;
        }

        .theme-toggle {
            position: static;
            margin: 10px 0;
        }

        .admin-controls {
            flex-direction: column;
            gap: 8px;
        }

        .admin-controls form {
            width: 100%;
        }

        .fetch-button,
        .export-button,
        .import-button,
        .delete-button {
            width: 100%;
            justify-content: center;
        }
    }

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

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }