/* ============================================
   Seats of Royals and Nobles - Gold/Black Theme
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --dark-gold: #AA8C2C;
    --black: #1a1a1a;
    --dark-gray: #2a2a2a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --accent: #C9A961;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background-color: var(--black);
    color: var(--light-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border-bottom: 3px solid var(--gold);
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--accent);
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--gold);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1rem;
}

/* Seats Grid */
.seats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.seat-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.seat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.seat-card:hover::before {
    left: 100%;
}

.seat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--accent);
}

.seat-type-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--gold);
    color: var(--black);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.seat-type-badge.noble {
    background-color: var(--accent);
}

.seat-card h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.seat-card .title {
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seat-card p {
    color: var(--light-gray);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.seat-info {
    border-top: 1px solid var(--accent);
    padding-top: 1rem;
    margin-top: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.info-label {
    color: var(--accent);
    font-weight: bold;
}

.info-value {
    color: var(--light-gray);
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.status-badge.inactive {
    background-color: #f44336;
}

/* Forms */
form {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--light-gray);
    color: var(--black);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--black);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    border: 3px solid var(--gold);
    border-radius: 8px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.login-box h1 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.dashboard-header h2 {
    color: var(--gold);
    font-size: 2rem;
}

.user-info {
    color: var(--accent);
    text-align: right;
}

.user-info p {
    margin: 0.3rem 0;
}

.logout-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    margin-left: 1rem;
}

.logout-btn:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Admin Panel */
.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-btn {
    flex: 1;
    min-width: 150px;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #4CAF50;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #f44336;
}

.message.info {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    border-top: 3px solid var(--gold);
    color: var(--accent);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

.footer-text {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 0.5rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .seats-container {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 2rem 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-info {
        text-align: left;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .seat-card {
        padding: 1rem;
    }
    
    button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    header, footer, nav {
        display: none;
    }
    
    .seat-card {
        page-break-inside: avoid;
    }
}
