:root {
    --primary-color: #007bff; /* নীল থিম */
    --secondary-color: #28a745; /* সবুজ */
    --background-color: #f0f2f5; /* হালকা ধূসর */
    --card-bg: #ffffff; /* সাদা */
    --text-color: #333; /* গাঢ় টেক্সট */
    --accent-color: #d9534f; /* লাল */
    --danger-color: #e74c3c;
    --info-color: #3498db;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

button:hover, .menu-button:hover, .back-btn:hover {
    cursor: pointer;
}

.login-container, .dashboard-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px; /* কন্টেইনার বড় করা হয়েছে */
    margin-top: 5vh;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    color: var(--text-color);
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}

#logoutButton {
    background-color: #c0392b;
    margin-top: 10px;
    margin-bottom: 15px;
}
#logoutButton:hover {
    background-color: #a03024;
}

.error {
    color: var(--danger-color);
    text-align: center;
    margin-top: 15px;
}

.success {
    color: #2ecc71;
    text-align: center;
    margin: 15px 0;
    font-size: 1.1em;
    font-weight: bold;
}

.dashboard-container {
    max-width: 800px;
}

.hidden {
    display: none;
}

.editor-section {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #eee;
}
.editor-section h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.editor-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.editor-section h4 i {
    margin-right: 8px;
}

.sub-editor-section {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}
.sub-editor-section h5 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.1em;
}
.sub-editor-section .add-link-btn {
    background-color: #27ae60;
    margin-top: 10px;
}
.sub-editor-section .add-link-btn:hover {
    background-color: #229954;
}

.editor-section button {
    background: var(--secondary-color);
    color: white;
}
.editor-section button:hover {
    background: #218838;
}

hr {
    border: 1px solid #f0f0f0;
    margin: 30px 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

small {
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #777;
    opacity: 0.9;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group .clear-btn {
    background: #7f8c8d;
    color: white;
}
.button-group .clear-btn:hover {
    background: #6c7a7b;
}

#package-list-container {
    margin-top: 20px;
}

.package-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    border-left: 4px solid var(--primary-color);
    word-break: break-all;
}

.package-item span {
    font-size: 1.1em;
    font-weight: bold;
    flex: 1;
    padding-right: 10px;
}

.package-item .actions {
    display: flex;
    gap: 5px; /* বাটনগুলোর মধ্যে গ্যাপ */
}

.package-item .actions button {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 0; /* মার্জিন রিসেট */
}

.edit-btn {
    background: var(--info-color);
}
.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: var(--danger-color);
}
.delete-btn:hover {
    background: #c0392b;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-button {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    padding: 25px 15px;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-align: center;
}
.menu-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.menu-button i {
    font-size: 2.5em;
}

.back-btn {
    width: auto;
    padding: 8px 15px;
    background: var(--info-color);
    font-size: 14px;
    margin-bottom: 15px;
}
.back-btn:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 10px; 
    }
    .login-container, .dashboard-container {
        padding: 15px; 
        margin-top: 10px;
        max-width: 100%; 
    }
    h2 { font-size: 1.5em; }
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .menu-button {
        padding: 20px 10px;
        font-size: 1em;
    }
    .menu-button i { font-size: 2em; }
    .package-item {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    .package-item .actions {
        display: flex;
        width: 100%; 
        gap: 10px; 
    }
    .package-item .actions button {
        flex: 1; 
        margin-left: 0;
    }
    .button-group { flex-direction: column; }
}

.pricing-sub-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}
.form-group-inline {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
    vertical-align: top;
}
.form-group-inline:last-of-type {
    margin-right: 0;
}
.pricing-sub-form label {
    font-size: 14px;
    color: #555;
}
.add-btn {
    background-color: #27ae60;
    margin-top: 10px;
    width: 100%;
}
.add-btn:hover {
    background-color: #229954;
}
#pricing-list-container {
    margin-top: 15px;
}

/* ======================================
    ✅ CSS আপডেট: মূল্য তালিকার বাটন
====================================== */
.pricing-item {
    background: #fdfdfd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
}
.pricing-item span {
    font-weight: bold;
    color: var(--secondary-color);
    flex-grow: 1;
}
.pricing-item span .price-value {
    color: var(--text-color);
    font-weight: normal;
}

/* বাটনগুলোর জন্য actions div */
.pricing-item .actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0; /* বাটনগুলো যেন ছোট না হয়ে যায় */
}

/* সব বাটনের জন্য কমন স্টাইল */
.pricing-item button {
    width: auto;
    padding: 5px 10px;
    font-size: 14px; /* ফন্ট সাইজ বাড়ানো হয়েছে */
    margin: 0;
}

/* এডিট বাটনের রঙ */
.pricing-item .edit-price-btn {
    background: var(--info-color);
}
.pricing-item .edit-price-btn:hover {
    background: #2980b9;
}

/* ডিলিট বাটনের রঙ */
.pricing-item .delete-price-btn {
    background: var(--danger-color);
}
.pricing-item .delete-price-btn:hover {
    background: #c0392b;
}
/* ======================================
    CSS আপডেট শেষ
====================================== */

@media (max-width: 768px) {
    .form-group-inline {
        width: 100%;
        margin-right: 0;
    }
}
