:root {
    --primary-color: #3F51B5; /* Telegram Blue */
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-color);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: background 0.3s;
    display: block;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--primary-color);
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
    margin-left: 290px; /* Width of sidebar + padding */
    width: calc(100% - 290px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow-x: auto; /* For tables on mobile */
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #006699;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.status-pending {
    color: orange;
    font-weight: bold;
}

.status-sent {
    color: green;
    font-weight: bold;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tariff-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.tariff-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tariff-card.selected {
    background-color: #e6f7ff;
    border-color: var(--primary-color);
}
.channel-item input {
    width: auto;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 28px;
    cursor: pointer;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: auto;
        margin: 15px;
        padding: 0;
        padding-top: 60px;
    }

    .menu-toggle {
        display: block;
        font-size: 20px;
    }

    .create-post-layout {
        flex-direction: column;
    }

    .form-column, .scheduled-posts-column {
        width: 100%;
        flex: none;
    }

    .scheduled-posts-column {
        position: static;
    }

    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        justify-content: center;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header h1 {
        font-size: 24px;
        margin: 0;
    }
    .custom-select-options{
        overflow-x: hidden;
    }
    .user-name {
        font-weight: 100;
        white-space: nowrap
    }
}