/* =================================================
   Dashboard Layout
================================================= */

.lm-new-dashboard,
.lm-new-dashboard * {
    box-sizing: border-box;
}

.lm-new-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    direction: rtl;
    align-items: start;
}

/* =================================================
   Sidebar (Dark Theme)
================================================= */

.lm-new-sidebar {
    background: #1e272e; 
    border-radius: 15px;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: #ffffff;
}

.lm-sidebar-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
    margin-bottom: 15px;
}

/* اصلاح نهایی آواتار برای دایره شدن */
.lm-avatar-box {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.lm-avatar-box img, 
.lm-avatar-box .avatar,
.lm-custom-avatar {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important; /* تبدیل به دایره */
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.lm-sidebar-header h3 {
    color: #ffffff !important;
    font-size: 18px;
    margin: 10px 0;
}

.lm-sidebar-header .lm-badge {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

/* =================================================
   Sidebar Menu
================================================= */

.lm-new-menu {
    display: flex;
    flex-direction: column;
}

.lm-new-menu a {
    padding: 15px 25px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex;
    align-items: center;
    border-right: 4px solid transparent;
    transition: all .3s ease;
}

.lm-new-menu a .dashicons {
    margin-left: 12px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.lm-new-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

.lm-new-menu a.active {
    background: rgba(52, 152, 219, 0.1);
    color: #ffffff !important;
    border-right-color: #3498db;
}

.lm-new-menu a.active .dashicons {
    color: #3498db;
}

/* =================================================
   Main Content
================================================= */

.lm-new-main {
    display: flex;
    flex-direction: column;
}

.lm-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.lm-main-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    min-height: 450px;
}

/* دکمه مشاهده سایت */
.btn-site-view {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

/* =================================================
   Mobile Responsive
================================================= */

@media (max-width: 850px) {
    .lm-new-dashboard {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .lm-new-sidebar { order: 2; }
    .lm-new-main { order: 1; }
}
/* =================================================
   Modern Form Styles (Add Logo Page)
================================================= */

.lm-add-logo-container {
    max-width: 800px;
    margin: 0 auto;
}

.lm-form-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.lm-form-header h2 {
    font-size: 22px;
    color: #2d3436;
    margin-bottom: 5px;
}

.lm-form-header p {
    color: #636e72;
    font-size: 14px;
}

.lm-modern-form .lm-form-group {
    margin-bottom: 20px;
}

.lm-modern-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3436;
    font-size: 14px;
}

.lm-modern-form input[type="text"],
.lm-modern-form input[type="number"],
.lm-modern-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    background: #fcfcfc;
}

.lm-modern-form input:focus,
.lm-modern-form textarea:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.lm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* استایل آپلود فایل */
.file-input-wrapper {
    background: #f8f9fa;
    border: 2px dashed #dfe6e9;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.lm-form-info {
    background: #fff9db;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.lm-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* دکمه ارسال نهایی */
.lm-submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.lm-submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.lm-submit-btn .dashicons {
    font-size: 20px;
}

@media (max-width: 600px) {
    .lm-form-row {
        grid-template-columns: 1fr;
    }
}
/* Profile Specific Styles */
.profile-top-section {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px !important;
    margin-bottom: 30px !important;
}

.avatar-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.readonly-input {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    color: #888;
}

.form-divider {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 20px 0;
}

.info-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-secondary-sm {
    display: inline-block;
    padding: 8px 15px;
    background: #eee;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-secondary-sm:hover {
    background: #e0e0e0;
}

.lm-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
/* ===============================
   Edit Logo Page
================================*/

.lm-thumb-preview {
    margin-bottom: 10px;
}

.lm-thumb-preview img{
    border-radius:8px;
    border:1px solid #ddd;
    padding:4px;
    background:#fff;
}

/* دکمه بازگشت */
.btn-secondary-sm{
    display:inline-block;
    margin-top:15px;
    padding:10px 18px;
    background:#ecf0f1;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    font-size:14px;
    transition:0.3s;
}

.btn-secondary-sm:hover{
    background:#e0e0e0;
}

/* فرم دو ستونه */
.lm-form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* موبایل */
@media(max-width:600px){

.lm-form-row{
    grid-template-columns:1fr;
}

}
