/* ========================================
   RADYO MÜZİK İSTEK SİSTEMİ - GLOBAL STYLES
   ======================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e5e7eb;
    min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
    background: #f3f4f6;
    color: #6b7280;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #d1d5db;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions a {
    color: #a0a5a9;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 5px;
    background: rgba(255,255,255,0.50);
    transition: 0.3s;
}


.header-actions a:hover {
    background: rgba(255,255,255,0.3);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.admin-container,
.dj-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ========== CARDS ========== */
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.card h2 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 20px;
}

/* Request Form Container */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ========== STATS ========== */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #6b7280;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

.shoutcast-panel {
    background: white;
    border-radius: 12px;
    padding: 0px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.shoutcast-table-wrapper {
    overflow-x: auto;
}

.shoutcast-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.shoutcast-table th {
    padding: 12px 10px;
    border-bottom: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    vertical-align: bottom;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: default;
    transition: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shoutcast-label {
    font-size: 12px;
    letter-spacing: 0.2em;
}

.shoutcast-value {
    font-size: 26px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0;
    margin-top: 6px;
}

.shoutcast-value-simulated {
    color: #6b7280;
}

.shoutcast-real-info {
    margin-top: 8px;
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 2px;
    letter-spacing: 0.08em;
}

.shoutcast-real-info .real-label {
    font-weight: 600;
}

.shoutcast-real-info .real-value {
    font-size: 18px;
    color: #374151;
    letter-spacing: 0;
}

.shoutcast-extra-note {
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 0.18em;
}

.shoutcast-update-head .shoutcast-value {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.shoutcast-error {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
}

.form-status-panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
}

.form-status-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #4b5563;
}

.form-status-label {
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #9ca3af;
    text-transform: uppercase;
}

.form-status-indicator {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.form-status-indicator.open {
    color: #16a34a;
}

.form-status-indicator.closed {
    color: #dc2626;
}

.form-status-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    box-shadow: 0 10px 20px rgba(31,41,55,0.15);
}

.form-status-btn.open {
    background: #2563eb;
}

.form-status-btn.closed {
    background: #b91c1c;
}

.form-status-btn:hover {
    transform: translateY(-2px);
}

.form-status-action {
    display: flex;
    align-items: center;
}

@media (max-width: 640px) {
    .form-status-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-status-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========== FORMS ========== */
.form-container {
    padding: 30px;
}

.form-closed-box {
    border: 2px dashed #fca5a5;
    background: #fef2f2;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #991b1b;
}

.form-closed-box h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.form-closed-note {
    font-size: 14px;
    color: #b91c1c;
    margin-top: 10px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

label .required {
    color: #ef4444;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ad2a04;
    box-shadow: 0 0 0 3px rgba(173, 42, 4, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== BUTTONS ========== */
.btn,
.submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #ad2a04;
    color: white;
    font-size: 16px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(173, 42, 4, 0.3);
    background: #8c2203;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #ad2a04;
    color: white;
}

.btn-primary:hover {
    background: #8c2203;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-approve { background: #dbeafe; color: #1e40af; }
.btn-reject { background: #fee2e2; color: #991b1b; }
.btn-play { background: #d1fae5; color: #065f46; }
.btn-delete { background: #fecaca; color: #991b1b; }
.btn-edit { background: #dbeafe; color: #1e40af; }
.action-btn:hover { opacity: 0.8; }

/* ========== MESSAGES ========== */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========== TABLES ========== */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
thead { background: #f9fafb; }
th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #4b5563;
}

tr:hover { background: #f9fafb; }

/* ========== STATUS BADGES ========== */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dbeafe; color: #1e40af; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-played { background: #d1fae5; color: #065f46; }
.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #fef3c7; color: #92400e; }
.badge-dj { background: #dbeafe; color: #1e40af; }

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 20px;
    background: #f3f4f6;
    border-top: 1px solid #d1d5db;
}

.footer a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

.footer a:hover { text-decoration: underline; }

/* ========== CONTROLS ========== */
.controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.controls-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ========== FILTERS ========== */
.filter-tabs {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #6b7280;
    background: #f3f4f6;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.filter-tab.active { background: #ad2a04; color: white; }

/* ========== SEARCH ========== */
.search-box { flex: 1; min-width: 200px; }
.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 14px;
}

/* ========== PAGINATION ========== */
.pagination {
    padding: 20px;
    text-align: center;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 5px;
    background: white;
    transition: 0.3s;
}

.pagination a.active { background: #ad2a04; color: white; }
.pagination a:hover:not(.active) { background: #f3f4f6; }

/* ========== DJ PANEL - REQUEST CARDS ========== */
.requests-container { display: grid; gap: 15px; }

.request-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    transition: transform 0.2s;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.request-info h3 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 18px;
}

.request-details { display: grid; gap: 8px; margin-bottom: 10px; }

.detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

.detail-label { font-weight: 600; min-width: 100px; }
.flag-info { display: flex; align-items: center; gap: 8px; }
.flag-img {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.message-box {
    background: #f9fafb;
    padding: 12px;
    border-radius: 5px;
    margin-top: 10px;
    font-style: italic;
    color: #6b7280;
    font-size: 13px;
}

.request-actions { display: flex; flex-direction: column; gap: 8px; }
.time-badge { font-size: 12px; color: #9ca3af; margin-top: 5px; }

/* ========== LOGIN PAGES ========== */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo { text-align: center; margin-bottom: 30px; }
.logo h1 { color: #ad2a04; font-size: 28px; margin-bottom: 5px; }
.logo p { color: #6b7280; font-size: 14px; }

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fca5a5;
}

.back-link { text-align: center; margin-top: 20px; }
.back-link a { color: #ad2a04; text-decoration: none; font-size: 14px; }
.back-link a:hover { text-decoration: underline; }

/* ========== UTILITY CLASSES ========== */
.no-data { padding: 40px; text-align: center; color: #9ca3af; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

.bulk-actions {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.bulk-actions.active { display: block; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 10px; }
    .header { padding: 20px 15px; }
    .header h1 { font-size: 20px; }
    .header p { font-size: 12px; }
    .header-content { flex-direction: column; gap: 15px; align-items: flex-start; }
    .header-actions { flex-wrap: wrap; gap: 10px; }
    .header-actions a { margin: 0; font-size: 13px; padding: 6px 12px; }
    .stats { padding: 15px; flex-direction: row; gap: 15px; }
    .stat-item { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-number { font-size: 24px; }
    .form-container { padding: 20px 15px; }
    .form-grid { grid-template-columns: 1fr; }
    .controls-row { flex-direction: column; align-items: stretch; }
    .filter-tabs { padding: 15px; gap: 8px; }
    .filter-tab { font-size: 12px; padding: 8px 12px; }
    .table-container { overflow-x: auto; }
    table { font-size: 11px; min-width: 800px; }
    td, th { padding: 8px 4px; }
    .action-btn { font-size: 10px; padding: 4px 8px; }
    .request-card { grid-template-columns: 1fr; padding: 15px; }
    .request-info h3 { font-size: 16px; }
    .detail-row { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 5px; }
    .detail-label { min-width: auto; font-size: 12px; }
    .message-box { font-size: 12px; padding: 10px; }
    .request-actions { flex-direction: row; flex-wrap: wrap; }
    .action-btn { font-size: 12px; padding: 8px 16px; flex: 1; min-width: 100px; }
    .footer { padding: 15px; flex-direction: row; }
    .footer a { display: block; margin: 5px 0; }
}

@media (max-width: 480px) {
    .container { border-radius: 10px; }
    .header h1 { font-size: 18px; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 11px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 15px; }
    input[type="text"], textarea { font-size: 16px; }
    .request-info h3 { font-size: 15px; }
}
