:root {
    --cs-orange: #f89406;
    --cs-dark: #1a1a1a;
    --cs-darker: #121212;
    --cs-light: #e6e6e6;
    --cs-red: #d9534f;
    --cs-green: #5cb85c;
    --cs-blue: #428bca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--cs-dark);
    color: var(--cs-light);
    background-image: url('https://i.imgur.com/rJ0NByz.jpeg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-blend-mode: overlay;
}

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

header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 15px 0;
    border-bottom: 3px solid var(--cs-orange);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    color: var(--cs-orange);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: var(--cs-light);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background-color: var(--cs-orange);
    color: var(--cs-dark);
}

.nav-menu li a.active {
    background-color: var(--cs-orange);
    color: var(--cs-dark);
}

.nav-menu li a i {
    margin-right: 8px;
}

.main-content {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    border: 1px solid #333;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(18, 18, 18, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--cs-orange);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--cs-light);
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--cs-orange);
    outline: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--cs-orange);
    color: var(--cs-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-danger {
    background-color: var(--cs-red);
    color: white;
}

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

.btn-success {
    background-color: var(--cs-green);
    color: white;
}

.btn-success:hover {
    background-color: #449d44;
}

.btn-primary {
    background-color: var(--cs-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #3071a9;
}

.news-item {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--cs-orange);
    position: relative;
}

.news-item h3 {
    color: var(--cs-orange);
    margin-bottom: 10px;
}

.news-item p {
    line-height: 1.6;
}

.news-actions {
    position: absolute;
    top: 20px;
    right: 20px;
}

.news-actions a {
    margin-left: 10px;
    color: var(--cs-light);
    transition: color 0.3s;
}

.news-actions a:hover {
    color: var(--cs-orange);
}

.add-news-form {
    margin-top: 30px;
}

.add-news-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--cs-light);
    min-height: 100px;
    margin-bottom: 15px;
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(18, 18, 18, 0.8);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

table th {
    background-color: var(--cs-orange);
    color: var(--cs-dark);
    font-weight: bold;
}

table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.table-actions a {
    margin-right: 10px;
    color: var(--cs-light);
    transition: color 0.3s;
}

.table-actions a:hover {
    color: var(--cs-orange);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.9);
    border-top: 1px solid #333;
    margin-top: 30px;
}

footer p {
    color: var(--cs-light);
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--cs-darker);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--cs-light);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.alert-success {
    background-color: rgba(92, 184, 92, 0.2);
    border: 1px solid var(--cs-green);
    color: var(--cs-green);
}

.alert-error {
    background-color: rgba(217, 83, 79, 0.2);
    border: 1px solid var(--cs-red);
    color: var(--cs-red);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Ban form styling */
.ban-form {
    padding: 20px;
    margin-bottom: 20px;
}

.ban-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.ban-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.ban-form input {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1e1e1e;
    color: #fff;
}

.form-actions {
    grid-column: span 2;
    text-align: right;
}

.ban-btn {
    background: #d32f2f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.ban-btn:hover {
    background: #ff3d3d;
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* Table styling */
.ban-table {
    padding: 20px;
}

.ban-table table {
    width: 100%;
    border-collapse: collapse;
}

.ban-table th, .ban-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.ban-table th {
    background:#e67e22;
    font-weight: bold;
}

.table-actions a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: #444;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.table-actions a:hover {
    background: #28a745;
    box-shadow: 0 0 8px rgba(0,255,0,0.5);
}