
:root {
    --bg: #0f172a;
    --card: #1e293b;
    --accent: #3b82f6;
    --sidebar: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --shadow: rgba(0,0,0,0.6);
    --transition: 0.3s ease;
}

/* Body and Layout */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

#app {
    display: flex;
    min-height: 100vh;
}
.dashboard-container {
    display: flex;
    height: 100vh; /* ارتفاع کل صفحه */
}

/* Sidebar */
.sidebar {
  width: 20px;
  background: var(--sidebar);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;

}




.sidebar h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #fff;
}
.sidebar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--muted);
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
     
}
.sidebar a i {
    margin-right: 10px;
    font-size: 25px;
}
.sidebar a.active,
.sidebar a:hover {
    color: var(--accent);
    font-weight: 600;
}

/* Main and Header */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    transition: var(--transition);
}
header {
    height: 60px;
    background: var(--card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #334155;
}
header div {
    font-size: 24px;
    padding: 10px 0;
    text-align: center;
}

/* Content */
.content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;

    gap: 20px;
    flex-wrap: wrap;
    animation: fadeIn 0.5s ease;
}
.content h1 {
    margin: 0 0 20px 0;
    font-weight: 700;
    font-size: 26px;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.card {
    background: var(--card);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px) scale(1.02);
}
.card .icon {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 10px;
}
.card .number {
    font-size: 28px;
    font-weight: 700;
}
.card .label {
    color: var(--muted);
    font-size: 14px;
}

/* Growth Stats */
.growth {
    background: var(--card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow);
}
.growth h2 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 20px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.stat-row:last-child {
    margin-bottom: 0;
}
.stat-label {
    font-size: 15px;
    color: var(--muted);
}
.stat-value {
    font-size: 16px;
    font-weight: 600;
}
.progress-bar {
    background: #334155;
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}
.progress-bar-inner {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s;
}

/* Filters */
.filters {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.filters label {
    font-weight: 600;
    font-size: 14px;
}
.filters select,
.filters input[type="text"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    width: 150px;
    transition: background-color 0.3s ease;
}
.filters select:hover,
.filters input[type="text"]:hover,
.filters select:focus,
.filters input[type="text"]:focus {
    background: #475569;
    outline: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
th,
td {
    padding: 14px 20px;
    border-bottom: 1px solid #334155;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
}
th {
    background: #334155;
    user-select: none;
}
tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Table actions buttons */
/* دکمه اضافه اصلی */
/* دکمه اضافه اصلی */
/* دکمه اضافه اصلی مستطیلی */
.add-main {
    display: inline-block;
    margin-bottom: 15px;
    background: var(--accent);
    border: none;
    padding: 0px 28px; 
    height: 40px; /* عرض بیشتر */
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.5);
    white-space: nowrap; /* جلوگیری از شکستن متن */
}

/* هاور دکمه اضافه */
.add-main:hover {
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.7);
}

/* دکمه‌های اکشن داخل جدول کنار هم */


.actions button {
    background: transparent;
    border: 2px solid var(--accent);
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    user-select: none;
    white-space: nowrap; /* متن یا آیکون شکسته نشه */
    
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 36px;
}

/* هاور دکمه‌ها */
.actions button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* دکمه ویرایش */
.actions button.edit {
    border-color: #10b981;
    color: #10b981;
}
.actions button.edit:hover {
    background: #10b981;
    color: #fff;
}

/* دکمه حذف */
.actions button.delete {
    border-color: #ef4444;
    color: #ef4444;
}
.actions button.delete:hover {
    background: #ef4444;
    color: #fff;
}


/* Status toggles */
.status-toggle {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    user-select: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.status-approved {
    background: #10b981;
    color: white;
}
.status-pending {
    background: #ef4444;
    color: white;
}
.status-read {
    background: #3b82f6;
    color: white;
}
.status-unread {
    background: #ef4444;
    color: white;
}

/* Audio */
audio {
    outline: none;
    width: 180px;
    border-radius: 6px;
    background: var(--card);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

/* List and columns */
.column {
    flex: 1;
    height:600px;
    background: var(--card);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow-y: auto;
}
.column h3 {
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}
.column input,
.column select{
    padding: 8px;
    margin-bottom: 10px;
    background: #334155;
    border: none;
    border-radius: 8px;
    color: #fff;
}
.list {
    flex: 1;
    overflow: auto;
    transition: var(--transition);
}
.list div {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.list div:hover {
    background: rgba(255,255,255,0.1);
}
.list .active {
    background: var(--accent);
}
    .list div p {
        display: block;
        width: 100%;
    }

.list div button {
    margin-left: 5px;
}
button.add-btn {
    background: var(--accent);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}
.modal.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--card);
    padding: 30px 35px;
    border-radius: 15px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: var(--transition);
    user-select: none;
}
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}
.modal-content h3,
.modal-content h4 {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text);
}
.modal-content label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text);
    user-select: text;
}
.modal-content select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    background: #334155;
    color: #f1f5f9;
    font-size: 15px;
    user-select: text;
    transition: background-color 0.3s ease;
}
.modal-content input[type="text"],
.modal-content input[type="file"],
.modal-content input[type="password"],
.modal-content textarea {
    width: 90%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: none;
    background: #334155;
    color: #f1f5f9;
    font-size: 15px;
    user-select: text;
    transition: background-color 0.3s ease;
}
    .modal-content input[type="text"]:focus,
    .modal-content input[type="file"]:focus,
    .modal-content input[type="password"]:focus,
    .modal-content select:focus,
    .modal-content textarea :focus {
        background: #475569;
        outline: none;
    }
.modal-content button {
   /* width: 100%;*/
    background: var(--accent);
    border: none;
    padding: 14px 0;
    font-weight: 700;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    user-select: none;
    width:80px;
}
.modal-content button:hover {
    background: #2563eb;
}

/* Property Modal */
.PropModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.PropModal.show {
    opacity: 1;
    pointer-events: auto;
}
.PropModal-content {
    background: var(--card);
    padding: 30px;
    border-radius: 15px;
    width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: var(--transition);
    user-select: none;
}
.PropModal.show .PropModal-content {
    transform: scale(1);
    opacity: 1;
}
.PropModal-content h4 {
    margin-bottom: 15px;
}
.PropModal-content input {
    width: 80%;
    padding: 12px;
    margin: 15px;
    border: none;
    border-radius: 8px;
    background: #334155;
    color: #fff;
}
.PropModal-content button {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
}

/* Tree View and toggle */
.tree-indent {
    padding-left: 35px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toggle-btn {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}
.toggle-btn.rotate {
    transform: rotate(90deg);
}
.hidden-row {
    display: none;
}

 Responsive Design 
@media (max-width: 1024px) {
    .content {
        flex-wrap: wrap;
    }
    .column {
        flex: 1 1 calc(50% - 20px);
    }
}




@media (max-width: 768px) {
    .sidebar {
      /*  width: 100%;*/
        height: auto;
        position: relative;
        padding: 15px;
    }
    .sidebar a {
        display: block;
        padding: 10px;
        text-align: center;
    }
    .main {
        margin-left: 0;
        margin-top: 10px;
    }
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 15px;
        background: var(--card);
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    td {
        text-align: right;
        padding: 8px 10px;
        position: relative;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }
    .tree-indent {
        padding-left: 10px;
        justify-content: flex-end;
    }
    .actions button {
        width: 100%;
        margin: 5px 0;
        font-size: 14px;
    }
    .add-main {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    .modal-content {
        width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
.content::-webkit-scrollbar {
    width: 8px;
}
.content::-webkit-scrollbar-track {
    background: var(--card);
    border-radius: 8px;
}
.content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
}

/* Footer */
footer {
    height: 50px;
    background: var(--sidebar);
    text-align: center;
    line-height: 50px;
    font-size: 13px;
    color: #64748b;
    user-select: none;
}
.Jirlee_contct-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: var(--text-color);
    box-shadow: var(--shadow);
    animation: fadeIn 0.7s ease;
}



.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin:10px;
}

    .pagination button {
        background: linear-gradient(145deg, #4e73df, #3756c0);
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease-in-out;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }

        .pagination button:hover {
            transform: translateY(-2px);
            background: linear-gradient(145deg, #567ae9, #2f4fb8);
        }

        .pagination button:disabled {
            background: #d6d6d6;
            color: #888;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

    .pagination span {
        background: #f3f3f3;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 14px;
        color: #333;
        border: 1px solid #ddd;
    }




