:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #ff8c00;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
}

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

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

header {
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding: 40px 0;
    margin-bottom: 40px;
}

header h1 { margin: 0; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; }

hr { border-color: #333; margin: 30px 0; }

/* Buttons & Links */
button, .btn {
    background: var(--accent-color);
    color: #000;
    padding: 10px 15px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
}
button:hover, .btn:hover { opacity: 0.9; }

.fb-btn { background: #3b5998; color: white; display: inline-block; }
.danger-btn { background: #ff4444; color: white; }
.secondary-btn { background: #555; color: white; margin-left: 10px; }
.blue-btn { background: #2196F3; color: white; }
.purple-btn { background: #9C27B0; color: white; }
.text-link { background: none; color: var(--accent-color); text-decoration: underline; padding: 0; font-weight: normal; margin-right: 15px; }

/* Forms & Inputs */
input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
}
.search-bar { margin-bottom: 20px; }
.search-bar input { width: 60%; max-width: 300px; margin-bottom: 0; display: inline-block; }
.search-bar button { display: inline-block; }
.checkbox-label { display: block; margin-bottom: 15px; cursor: pointer; }
.checkbox-label input { width: auto; margin-right: 10px; }

/* Gallery Grid */
#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border 0.2s;
    border: 1px solid #333;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 15px; }
.card h2 { margin-top: 0; font-size: 1.2rem; color: #fff; }
.post-text { white-space: pre-wrap; color: var(--text-muted); }
.post-date { color: var(--text-muted); display: block; margin-top: 10px; }

/* Admin Panels */
.admin-header { display: flex; justify-content: space-between; align-items: center; }
.admin-card { background: #1e1e1e; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #333; }
.border-blue { border-color: #2196F3; }
.border-red { border-color: #ff4444; }
.border-purple { border-color: #9C27B0; }
.text-blue { color: #2196F3; }
.text-red { color: #ff4444; }
.text-purple { color: #9C27B0; }
.form-links { margin-top: 15px; }
.code-display { font-size: 1.2em; font-weight: bold; margin-top: 15px; color: #fff; letter-spacing: 1px; }
#contact-info { text-align: center; }
#contactText { white-space: pre-wrap; }