/* Teveclub Bot - Official Teveclub.hu Theme */

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

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: #E8D4A0 url('https://teveclub.hu/img_des/bg.jpg') repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.panel {
    background: #FFF9E6;
    border: 3px solid #8B6914;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #8B4513;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header h2 {
    color: #8B4513;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: #6B4423;
    font-size: 1.1em;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #6B4423;
    font-weight: 600;
    font-size: 1em;
}

.form-group input {
    padding: 15px 20px;
    border: 3px solid #8B6914;
    border-radius: 15px;
    font-size: 1em;
    background: #FFF9E6;
    transition: all 0.3s ease;
    font-family: Verdana, Arial, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #D4A574;
    background: #FFFDF0;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: radial-gradient(ellipse at center, #3A7ABD 0%, #1E5A9D 60%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(30, 90, 157, 0.4);
    border: 3px solid #154573;
    border-radius: 12px;
    padding: 18px 40px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 90, 157, 0.5);
    background: radial-gradient(ellipse at center, #4A8ACD 0%, #2770BD 60%);
}

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

.btn-secondary {
    background: radial-gradient(ellipse at center, #3A7ABD 0%, #1E5A9D 60%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(30, 90, 157, 0.3);
    border: 3px solid #154573;
    border-radius: 12px;
    padding: 18px 40px;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 90, 157, 0.4);
    background: radial-gradient(ellipse at center, #4A8ACD 0%, #2770BD 60%);
}

.btn-action {
    background: transparent;
    color: #4A3820;
    font-weight: bold;
    border: 3px solid #8B6914;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
}

.btn-action:hover:not(:disabled) {
    background: rgba(212, 165, 116, 0.1);
    color: #2A2010;
    border-color: #6B5410;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 20, 0.3);
}

.btn-icon {
    font-size: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
}

.btn-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.btn-label {
    font-size: 1.1em;
}

/* Action Grid */
.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Dropdown Container */
.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-container .btn-action {
    width: 100%;
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-container.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-list {
    width: 100%;
    margin-top: 10px;
    background: #FFF9E6;
    border: 3px solid #8B6914;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.food-item, .drink-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #E8D4A0;
    transition: all 0.2s ease;
}

.food-item:last-child, .drink-item:last-child {
    border-bottom: none;
}

.food-item:hover, .drink-item:hover {
    background: rgba(212, 165, 116, 0.2);
}

.food-item img, .drink-item img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    flex-shrink: 0;
}

.dropdown-item-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.dropdown-item-name {
    color: #4A3820;
    font-weight: 600;
    flex: 1;
}

.food-item span, .drink-item span {
    color: #4A3820;
    font-weight: 600;
}

.food-item .cost, .drink-item .cost {
    margin-left: auto;
    color: #8B6914;
    font-size: 0.9em;
}

.food-item .free, .drink-item .free {
    margin-left: auto;
    color: #2E7D32;
    font-size: 0.9em;
    font-weight: bold;
}

/* Scrollbar for dropdown */
.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #FFF9E6;
    border-radius: 10px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 10px;
    border: 2px solid #FFF9E6;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #B8956A;
}

/* Status Box */
.status-box {
    background: #FFF9E6;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #D4A574;
}

.status-header {
    background: linear-gradient(135deg, #D4A574 0%, #B8956A 100%);
    color: #2A2010;
    padding: 12px 20px;
    font-weight: bold;
    border-bottom: 2px solid #8B6914;
}

.status-content {
    padding: 20px;
    color: #4A3820;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.95em;
    line-height: 1.6;
    background: #FFFDF5;
}

/* Status Messages */
.status-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Scrollbar Styling */
.status-content::-webkit-scrollbar {
    width: 10px;
}

.status-content::-webkit-scrollbar-track {
    background: #FFF9E6;
    border-radius: 10px;
}

.status-content::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 10px;
    border: 2px solid #FFF9E6;
}

.status-content::-webkit-scrollbar-thumb:hover {
    background: #B8956A;
}

/* Responsive Design */
@media (max-width: 600px) {
    .panel {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header h2 {
        font-size: 1.6em;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    .actions button:last-child {
        grid-column: 1;
    }
}
