/* فایل: web_panel/style.css */
@import url('https://v1.fontapi.ir/css/Vazir');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    padding: 40px 20px;
}

/* افکت شیشه‌ای اصلی */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ==================================
   بخش فرم ورود
================================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.login-form input {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.login-form input:focus {
    border-color: #00d2ff;
    background: rgba(0, 0, 0, 0.4);
}

/* ==================================
   دکمه‌ها
================================== */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* ==================================
   تب‌ها (Tabs)
================================== */
.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    overflow-x: auto;
}

.tab-btn {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir', sans-serif;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border-color: transparent;
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================
   پرامپت‌ها و ساختار تنظیمات
================================== */
.prompt-section {
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #00d2ff;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
    line-height: 1.8;
}

textarea:focus {
    border-color: #00d2ff;
    background: rgba(0, 0, 0, 0.3);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ==================================
   گرید تنظیمات پایه
================================== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.settings-grid input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: white;
}

.full-width {
    grid-column: 1 / -1;
}

/* ==================================
   پیام‌های سیستم
================================== */
.status-msg {
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.status-msg.success { color: #00ff88; opacity: 1; }
.status-msg.error { color: #ff4b4b; opacity: 1; }

.error-box {
    background: rgba(255, 75, 75, 0.2);
    border: 1px solid #ff4b4b;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

/* ==================================
   جدول‌های شیشه‌ای
================================== */
.glass-table-wrapper {
    overflow-x: auto;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.glass-table th, .glass-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-table th {
    background: rgba(0, 0, 0, 0.3);
    color: #00d2ff;
    font-weight: bold;
}

.glass-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.badge.vip {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #000;
}

.badge.normal {
    background: rgba(255,255,255,0.2);
}