* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #111827;
    color: #f9fafb;
    min-height: 100vh;
}

header {
    background: #1f2937;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #374151;
}

header h1 {
    margin-bottom: 10px;
    color: #60a5fa;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: #f9fafb;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    transition: 0.2s;
}

nav a:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #1f2937;
    color: #f9fafb;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: #2563eb;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #0f172a;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: #93c5fd;
}

.meta {
    font-size: 0.95rem;
    color: #d1d5db;
    margin-bottom: 8px;
}

.comment {
    margin: 10px 0;
    color: #e5e7eb;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions a,
.card-actions button {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.secondary-btn {
    background: #374151;
    color: white;
}

.secondary-btn:hover {
    background: #4b5563;
}

.danger-btn {
    background: #dc2626;
    color: white;
}

.danger-btn:hover {
    background: #b91c1c;
}

.form-card,
.stats-card,
.details-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.message.success {
    display: block;
    background: #065f46;
    color: #d1fae5;
}

.message.error {
    display: block;
    background: #7f1d1d;
    color: #fee2e2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat-box {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-box h3 {
    color: #93c5fd;
    margin-bottom: 10px;
}

.details-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

.details-layout img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #93c5fd;
    text-decoration: none;
}

.empty-message {
    text-align: center;
    padding: 30px;
    background: #1f2937;
    border-radius: 12px;
    border: 1px solid #374151;
}

#logoutBtn:hover {
    background-color: red;
    color: white;
}

@media (max-width: 768px) {
    .details-layout {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 260px;
    }
}


