/* Panel/dist/css/style.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #121317;
    color: #e2e8f0;
    min-height: 100vh;
    padding-top: 90px; 
}

.content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px 80px;
    margin-top: 42px;
}

/* منو ثابت */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.menu button {
    flex: 1 1 28%;
    min-width: 100px;
    padding: 11px 8px;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: #cbd5e0;
    border: 1px solid #4a5568;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.menu button:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-color: #718096;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #9f7aea;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* بخش‌ها */
.section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-bottom: 24px;
}

.section.active {
    display: block;
    opacity: 1;
}

.card {
    background: #1a1d29;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3748;
    backdrop-filter: blur(8px);
}

/* عنوان‌ها */
h2 {
    color: #e2e8f0;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 8px;
}

h3 {
    color: #a0aec0;
    margin: 20px 0 12px;
    font-size: 15px;
    font-weight: 600;
}

/* آمار */
.stats {
    list-style: none;
    padding: 0;
    direction: rtl;
}

.stats li {
    margin: 14px 0;
    font-size: 15.5px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(45, 55, 72, 0.3);
    border-radius: 10px;
    border-left: 3px solid #667eea;
    transition: all 0.2s;
}

.stats li:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(-4px);
}

/* فرم‌ها */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

input, textarea {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #4a5568;
    background: #2d3748;
    color: #e2e8f0;
    font-size: 14.5px;
    transition: all 0.2s;
    direction: ltr;
}

input::placeholder, textarea::placeholder {
    color: #718096;
    font-size: 13.5px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: #1a202c;
}

button {
    padding: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

/* لیست‌ها */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 14px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 55, 72, 0.25);
    padding: 16px;
    border-radius: 12px;
    gap: 12px;
    border: 1px solid #2d3748;
    transition: all 0.2s;
}

ul li:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

ul li > div {
    flex: 1 1 70%;
    min-width: 0;
}

ul li button {
    flex: 0 0 auto;
    min-width: 68px;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(229, 62, 62, 0.3);
}

ul li button:hover {
    background: linear-gradient(135deg, #f5365c, #c53030);
}

/* لینک کانال */
.channel-url {
    color: #63b3ed;
    font-weight: 500;
    word-break: break-all;
    margin-bottom: 4px;
    text-decoration: none;
}

.channel-url:hover {
    color: #90cdf4;
}

.channel-name {
    color: #a0aec0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50ch;
    display: block;
}

.channel-id {
    color: #718096;
    font-size: 12px;
    margin-top: 2px;
}

/* تبلیغات و کپشن */
.ad-info span, .caption-text {
    display: block;
    margin-bottom: 4px;
    color: #cbd5e0;
    font-size: 14px;
}

.caption-text {
    white-space: pre-wrap;
    line-height: 1.6;
}