* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5; color: #222; line-height: 1.6; min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: #1a1a2e; color: #fff; display: flex; align-items: center;
    justify-content: space-between; padding: 0 20px; height: 60px; width: 100%;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 28px; width: auto; }
.nav-info { display: flex; gap: 20px; font-size: 0.9rem; color: #ddd; }
.nav-actions { position: relative; }
.user-btn {
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 14px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.user-btn:hover { background: rgba(255,255,255,0.2); }
.avatar-circle {
    width: 30px; height: 30px; border-radius: 50%; background: #ff6b81;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: bold; color: #fff;
}
.dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px; margin-top: 6px; overflow: hidden; z-index: 1000;
    border: 1px solid #e0e0e0;
}
.dropdown.show { display: block; }
.dropdown a {
    display: block; padding: 12px 16px; color: #333; text-decoration: none;
    font-size: 0.9rem; border-bottom: 1px solid #f0f0f0;
}
.dropdown a:hover { background: #f5f5f5; }
.dropdown a:last-child { border-bottom: none; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* CARDS */
.card {
    background: #fff; border-radius: 10px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid #eee;
}

/* GRID LAYOUTS */
.dashboard-grid, .show-layout, .profile-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 20px;
}
@media (max-width: 768px) {
    .dashboard-grid, .show-layout, .profile-grid { grid-template-columns: 1fr; }
    .nav-info { display: none; }
}

.shows-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.show-card {
    display: block; background: #f8f9fa; border: 2px solid #ddd;
    border-radius: 10px; padding: 20px; text-decoration: none; color: #333; transition: 0.2s;
}
.show-card:hover { border-color: #ff6b81; transform: translateY(-2px); }
.show-card h3 { color: #1a1a2e; }

/* PROFILE */
.profile-header { text-align: center; padding: 10px 0; }
.profile-avatar-large {
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    border: 3px solid #ff6b81; margin: 0 auto 10px; background: #ddd;
    display: flex; align-items: center; justify-content: center;
}
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 2.5rem; font-weight: bold; color: #ff6b81; }
.role-badge { display: inline-block; padding: 3px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 600; }
.role-admin { background: #ff6b81; color: #fff; }
.role-presenter { background: #3498db; color: #fff; }
.role-staff { background: #95a5a6; color: #fff; }

.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.detail-label { color: #666; font-size: 0.9rem; }
.detail-value { font-weight: 500; color: #333; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; color: #333; }

/* FORMS */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: #333; }
input, textarea, select {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc;
    border-radius: 6px; font-size: 0.95rem; font-family: inherit; color: #333; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #ff6b81; }
textarea { resize: vertical; min-height: 80px; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 10px 18px; border: none; border-radius: 6px;
    font-size: 0.9rem; cursor: pointer; text-decoration: none; font-weight: 500; transition: 0.2s;
}
.btn-primary { background: #ff6b81; color: #fff; }
.btn-primary:hover { background: #e0556b; }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 15px; }
.alert-error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-info { background: #f0f8ff; color: #2980b9; border: 1px solid #bee5eb; }
.alert-success { background: #f0fff0; color: #27ae60; border: 1px solid #d5f5e3; }

/* EVENTS */
.events-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.event-card { background: #f8f9fa; border-left: 4px solid #ff6b81; padding: 12px 15px; border-radius: 0 8px 8px 0; }
.event-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 5px; }
.event-card h3 { color: #333; }

/* COMMENTS */
.comment { border-bottom: 1px solid #eee; padding: 12px 0; }
.comment:last-child { border-bottom: none; }
.comment p { color: #333; }

/* STORAGE */
.storage-bar { background: #ddd; border-radius: 10px; height: 20px; position: relative; overflow: hidden; margin: 8px 0; }
.storage-used { height: 100%; border-radius: 10px; }
.storage-bar span { position: absolute; top: 0; left: 10px; line-height: 20px; font-size: 0.7rem; color: #fff; font-weight: bold; }

/* TABLES */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; color: #333; }
th { background: #f8f9fa; font-weight: 600; }
audio { width: 120px; height: 26px; }

/* LOGIN */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; background: #1a1a2e;
}
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-box { background: #fff; border-radius: 12px; padding: 40px 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; }
.login-box h1 { color: #ff6b81; margin-bottom: 5px; }
.login-box h2 { color: #666; font-size: 1rem; margin-bottom: 25px; font-weight: normal; }
.login-box .form-group { text-align: left; }
.login-box input { background: #fff; color: #333; }

/* MISC */
.verse-ref { font-weight: bold; color: #ff6b81; }
blockquote { font-style: italic; border-left: 3px solid #ff6b81; padding-left: 15px; margin: 8px 0; color: #555; }
.text-muted { color: #888; }
h1 { font-size: 1.6rem; margin-bottom: 8px; color: #1a1a2e; }
h2 { font-size: 1.15rem; margin-bottom: 12px; color: #1a1a2e; }
.footer { text-align: center; padding: 20px; color: #888; font-size: 0.85rem; }
.back-link { display: inline-block; margin-bottom: 8px; color: #ff6b81; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
a { color: #3498db; }
a:hover { color: #2980b9; }
