/* Insomnia Club Berlin - Authentic Design */
/* Based on the real Insomnia Club website styling */

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

body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    background-color: #000000;
    background-image: url('/img/body_bg.png');
    background-repeat: repeat-x;
    background-attachment: fixed;
    background-position: 0% 0%;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.4;
}

/* Header */
.header {
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 50%, #000000 100%);
    padding: 15px 0;
    border-bottom: 2px solid #666666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
}

.header h1 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: normal;
    font-family: 'Roboto Condensed', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav span {
    color: #cccccc;
    font-weight: normal;
    margin-right: 10px;
    font-size: 14px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: normal;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-link {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: inherit;
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Main Content */
.main {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

/* Page Headers */
.main h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.main p {
    color: #cccccc;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
}

/* Membership Cards Grid */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
    justify-items: center;
    align-items: start;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .membership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Full width buttons in membership cards */
.membership-card .btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
}

.membership-card {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.membership-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #777777;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #444444;
    padding-bottom: 15px;
}

.card-header h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: normal;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.card-price {
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.detail-label {
    color: #cccccc;
    font-weight: normal;
    font-size: 14px;
}

.detail-value {
    color: #ffffff;
    font-size: 14px;
}

.card-description {
    color: #aaaaaa;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #666666 0%, #555555 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: normal;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #777777;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.btn:hover {
    background: linear-gradient(135deg, #777777 0%, #666666 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #888888 0%, #666666 100%);
    border-color: #999999;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #999999 0%, #777777 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #444444 0%, #333333 100%);
    border-color: #555555;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: normal;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #555555;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #777777;
    box-shadow: 0 0 8px rgba(119, 119, 119, 0.3);
    background: rgba(42, 42, 42, 1);
}

.form-control::placeholder {
    color: #888888;
}


/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(139, 0, 139, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ff69b4;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: transparent;
    color: #ff69b4;
    margin: 0;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-question:hover {
    background: rgba(255, 105, 180, 0.1);
}

.faq-question.active {
    background: rgba(255, 105, 180, 0.15);
}

.faq-answer {
    color: #cccccc;
    line-height: 1.6;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 0 1.5rem 1.25rem;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    padding: 0.5rem 0;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(42, 42, 42, 0.95);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(10px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Scanner Interface */
.scanner-interface {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.scanner-section {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.scanner-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: normal;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.scanner-section p {
    color: #aaaaaa;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Admin Dashboard */
.admin-dashboard {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #555555;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

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

.stat-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-card h3 {
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.stat-number {
    font-size: 36px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.data-table th {
    background: rgba(42, 42, 42, 0.9);
    color: #ffffff;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.data-table tr:hover {
    background: rgba(85, 85, 85, 0.1);
}

/* Status badges */
.status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.status-paid {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-redeemed {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-inactive {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    padding: 30px 0;
    border-top: 1px solid #333333;
    margin-top: 50px;
}

.footer p {
    text-align: center;
    color: #aaaaaa;
    font-size: 14px;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 50px 30px;
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #555555;
    border-radius: 8px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

.error-page h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: normal;
}

.error-page p {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.section {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #444444;
    border-radius: 8px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: normal;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
}

.activity-type {
    color: #cccccc;
    font-size: 12px;
    text-transform: uppercase;
}

.activity-details {
    color: #ffffff;
    font-size: 14px;
}

.activity-time {
    color: #aaaaaa;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .membership-grid {
        grid-template-columns: 1fr;
    }
    
    .scanner-interface {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .modal-content {
        margin: 20px;
        padding: 25px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #666666, #444444);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #777777, #555555);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.membership-card,
.scanner-section,
.stat-card {
    animation: fadeIn 0.5s ease-out;
}

/* Text Emphasis */
em {
    color: #ffffff;
    font-style: normal;
    font-weight: bold;
}

/* Code elements */
code {
    background: rgba(26, 26, 26, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid #444444;
}