
<?php
if (session_status() !== PHP_SESSION_ACTIVE) { session_start(); }
$adminTitle = $adminTitle ?? 'Admin Panel';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?= htmlspecialchars($adminTitle) ?> - Oldies And More Radio</title>
    <link rel="stylesheet" href="../css/site.css">
    <link rel="stylesheet" href="../css/sidebar.css">
    <link rel="stylesheet" href="assets/admin-v2.css">
    <style>
      body.page-admin{background:url('../assets/images/background.png') center top / cover no-repeat fixed;color:#f8f3df;}
      body.page-admin .main-wrap{margin-left:96px;padding:28px 28px 120px;transition:margin-left .25s ease;}
      body.page-admin .sidebar:hover ~ .main-wrap{margin-left:286px;}
      body.page-admin .content-panel{max-width:1320px;margin:0 auto;background:linear-gradient(180deg,rgba(12,8,5,.90),rgba(21,13,8,.92));border:1px solid rgba(255,194,92,.28);box-shadow:0 22px 48px rgba(0,0,0,.36);}
      body.page-admin .content-panel::before{background:linear-gradient(135deg,rgba(0,234,255,.75),rgba(255,162,0,.75));}
      body.page-admin .section-title, body.page-admin h1, body.page-admin h2, body.page-admin h3, body.page-admin h4, body.page-admin label, body.page-admin p, body.page-admin td, body.page-admin th, body.page-admin li, body.page-admin span, body.page-admin strong {color:#f8f3df;}
      body.page-admin .about-text, body.page-admin small, body.page-admin .muted{color:#ffd98a!important;text-shadow:0 0 10px rgba(255,196,82,.18);}
      body.page-admin .input-field, body.page-admin input[type=text], body.page-admin input[type=email], body.page-admin input[type=password], body.page-admin input[type=file], body.page-admin input[type=url], body.page-admin input[type=number], body.page-admin input[type=datetime-local], body.page-admin input[type=date], body.page-admin textarea, body.page-admin select {
        width:100%; box-sizing:border-box; background:rgba(0,0,0,.52); color:#fff7de; border:1px solid rgba(0,234,255,.42); border-radius:14px; padding:13px 14px; box-shadow:0 0 0 1px rgba(255,153,0,.12), inset 0 0 18px rgba(0,0,0,.25);
      }
      body.page-admin textarea{min-height:120px;resize:vertical;}
      body.page-admin .input-field::placeholder, body.page-admin textarea::placeholder { color:rgba(255,241,201,.72); }
      body.page-admin .input-field:focus, body.page-admin textarea:focus, body.page-admin select:focus, body.page-admin input:focus {outline:none;border-color:#00eaff;box-shadow:0 0 0 1px rgba(0,234,255,.38),0 0 18px rgba(0,234,255,.28);}
      body.page-admin .button, body.page-admin button, body.page-admin .admin-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:14px;border:none;text-decoration:none;font-weight:700;background:linear-gradient(180deg,#ffb74c,#f08c00);color:#201106;box-shadow:0 8px 18px rgba(0,0,0,.28);cursor:pointer;}
      body.page-admin .button:hover, body.page-admin button:hover, body.page-admin .admin-btn:hover{filter:brightness(1.06);transform:translateY(-1px);}
      body.page-admin table{width:100%;border-collapse:separate;border-spacing:0 10px;}
      body.page-admin th{color:#ffd98a;text-transform:uppercase;font-size:.82rem;letter-spacing:.08em;padding:0 10px 4px;text-align:left;}
      body.page-admin td{padding:12px 10px;background:rgba(255,255,255,.03);border-top:1px solid rgba(255,194,92,.16);border-bottom:1px solid rgba(255,194,92,.16);}
      body.page-admin td:first-child{border-left:1px solid rgba(255,194,92,.16);border-radius:12px 0 0 12px;}
      body.page-admin td:last-child{border-right:1px solid rgba(255,194,92,.16);border-radius:0 12px 12px 0;}
      .admin-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0 auto 18px;max-width:1320px;padding:16px 20px;border-radius:18px;background:linear-gradient(180deg,rgba(18,11,7,.94),rgba(10,7,4,.96));border:1px solid rgba(255,194,92,.25);box-shadow:0 16px 34px rgba(0,0,0,.30);}
      .admin-toolbar h1{margin:0;font-size:1.45rem;color:#fff2cf;}
      .admin-toolbar p{margin:4px 0 0;color:#ffd98a;}
      .admin-toolbar-links{display:flex;gap:10px;flex-wrap:wrap;}
      .admin-toolbar-links a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,194,92,.12);border:1px solid rgba(255,194,92,.24);color:#fff2cf;text-decoration:none;font-weight:700;}
      .admin-toolbar-links a:hover{background:rgba(255,194,92,.2);}
      .admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;}
      .admin-card{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:110px;padding:18px;border-radius:18px;text-decoration:none;color:#fff2cf;background:linear-gradient(180deg,rgba(32,19,12,.92),rgba(15,9,6,.95));border:1px solid rgba(255,194,92,.22);box-shadow:0 14px 28px rgba(0,0,0,.25);}
      .admin-card:hover{transform:translateY(-2px);border-color:rgba(255,194,92,.48);} 
      .admin-card .admin-card-title{font-weight:800;font-size:1rem;display:block;color:#fff4d6;}
      .admin-card .admin-card-desc{display:block;margin-top:8px;color:#ffd98a;font-size:.92rem;line-height:1.45;}
      .admin-login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 18px;}
      .admin-login-card{width:min(100%,560px);padding:30px 28px;border-radius:22px;background:linear-gradient(180deg,rgba(12,8,5,.94),rgba(20,12,8,.96));border:1px solid rgba(255,194,92,.30);box-shadow:0 24px 50px rgba(0,0,0,.42);text-align:center;}
      .admin-login-card h1{margin-top:0;}
      .admin-login-card .input-field{text-align:left;}
      @media (max-width: 980px){body.page-admin .main-wrap{margin-left:0;padding:88px 14px 130px}.admin-toolbar{margin-left:0}.sidebar{left:-9999px !important;}}
    </style>
</head>
<body class="page-admin">
