/* ===================================
   COMPREHENSIVE PANEL STYLING
   Orange Theme - All Sections
   =================================== */

:root {
    --color-primary: #F97316;
    --color-primary-dark: #EA580C;
    --color-secondary: #FB923C;
    --color-gold: #FCD34D;
    --color-bg-dark: #0A0A0A;
    --color-bg-card: rgba(26, 26, 26, 0.85);
    --color-text: #FFFFFF;
    --color-text-gray: #D4D4D4;
    --color-border: rgba(249, 115, 22, 0.2);
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
}

/* ===================================
   SECTION HEADER STYLING
   =================================== */
.panel-container img[src*="heading-border"] {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 200px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
}

.panel-container h3,
.panel-area h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   FORMS - MODERN STYLING
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: var(--color-text-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: rgba(212, 212, 212, 0.4);
}

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

/* ===================================
   BUTTONS - PREMIUM STYLING
   =================================== */
.gz-all-btn,
.er-consult-btn,
.send-btn,
.submitForm,
button[type="submit"],
.modern-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
	display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gz-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gz-all-btn:hover::before {
    left: 100%;
}

.gz-all-btn:hover,
.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    border-color: var(--color-gold);
}

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

button:disabled,
.gz-all-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================
   ALERTS & MESSAGES
   =================================== */
.form_success,
.alert-success,
.update-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 2px solid var(--color-success);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-success);
    font-weight: 500;
}

.form_error,
.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 2px solid var(--color-error);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-error);
    font-weight: 500;
}

.form_warning,
.alert-info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border: 2px solid var(--color-warning);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: var(--color-warning);
    font-weight: 500;
}

/* ===================================
   TABLES - MODERN DATA DISPLAY
   =================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.table_header,
thead td {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 16px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.table_header a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.table_header a:hover {
    color: var(--color-gold);
}

tbody td {
    padding: 14px 20px;
    color: var(--color-text-gray);
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(249, 115, 22, 0.05);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table_content {
    background: rgba(26, 26, 26, 0.3);
}

/* ===================================
   CUSTOM TABLE LAYOUTS
   =================================== */
.table {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    flex: 1;
    padding: 1.25rem;
    color: var(--color-text-gray);
}

.table-cell:first-child {
    background: rgba(249, 115, 22, 0.1);
    font-weight: 700;
    color: var(--color-gold);
    border-right: 1px solid var(--color-border);
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.pagination span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.page-info {
    text-align: center;
    color: var(--color-text-gray);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.page-info strong {
    color: var(--color-primary);
}

/* ===================================
   SPECIAL SECTIONS
   =================================== */

/* Skip Quest Note */
.skip-note {
    display: block;
    text-align: center;
    padding: 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-gray);
    margin: 1.5rem 0;
}

.skip-note span {
    color: var(--color-gold);
    font-weight: 700;
}

/* Search Forms */
.admin-log #search {
    margin-bottom: 2rem;
}

.admin-log form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.admin-log .form-control {
    flex: 1;
    max-width: 200px;
}

.admin-log .btn-primary {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radio Tabs */
.radiotab {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.6);
    margin-bottom: 2rem;
}

.radiotab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radiotab label {
    padding: 12px 32px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
    transition: all 0.3s ease;
    color: var(--color-text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.radiotab input:checked + label {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fieldsets */
fieldset {
    padding: 2rem;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

legend {
    font-weight: 700;
    color: var(--color-gold);
    padding: 0 1rem;
    font-size: 1.125rem;
}

/* Totals Display */
.total-topup {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 400px;
}

.total-topup p {
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
    text-align: center;
}

/* Server Time Display */
#server_time {
    text-align: center;
    color: var(--color-text-gray);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 8px;
}

/* Memo Boxes */
.memo-box {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.memo-box b {
    color: var(--color-gold);
}

/* Player Count Display */
.player-count {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.player-count .count {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Helper Text */
.helper-text {
    font-size: 0.875rem;
    color: var(--color-text-gray);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Inline Groups */
.inline-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Loader */
.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid transparent;
    border-right-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* No Data Messages */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-gray);
    font-style: italic;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    border: 2px dashed var(--color-border);
    margin: 2rem 0;
}

/* Dividers */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 3rem 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .panel-container h3,
    .panel-area h3 {
        font-size: 2rem;
    }
    
    .inline-group {
        grid-template-columns: 1fr;
    }
    
    .admin-log form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-log .form-control,
    .admin-log .btn-primary {
        max-width: 100%;
        width: 100%;
    }
    
    .radiotab label {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    .table_header,
    tbody td {
        padding: 12px 14px;
    }
    
    .mobile {
        display: block;
    }
    
    .desktop {
        display: none;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.text-primary {
    color: var(--color-primary);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
