/* ntm-frontend.css */
.ntm-client-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
}

.ntm-client-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ntm-client-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.ntm-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
    gap: 18px;
}

.ntm-client-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.ntm-client-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ntm-client-card .icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ntm-client-card .title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ntm-client-card .desc {
    font-size: 13px;
    color: #666;
}

/* رنگ‌ها */
.ntm-blue   { border-top: 4px solid #0ea5e9; }   /* آبی شاد */
.ntm-green  { border-top: 4px solid #22c55e; }   /* سبز شاد */
.ntm-navy   { border-top: 4px solid #1e293b; }   /* سورمه‌ای */
.ntm-orange { border-top: 4px solid #f97316; }   /* نارنجی */

.ntm-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

.ntm-login, .ntm-dashboard {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: Tahoma, sans-serif;
    box-sizing: border-box;
}

.ntm-login h3, .ntm-dashboard h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.ntm-login input[type=text], 
.ntm-login input[type=email],
.ntm-login button,
.ntm-login textarea,
.ntm-dashboard select,
.ntm-dashboard input[type=file],
.ntm-dashboard button,
.ntm-profile-form input,
.ntm-profile-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.ntm-login button, .ntm-dashboard button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.ntm-login button:hover, .ntm-dashboard button:hover {
    background-color: #005177;
}

#ntm_login_msg {
    margin-top: 10px;
    font-size: 14px;
    color: #d33;
}

#ntm_otp_field {
    margin-top: 10px;
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 480px) {
    .ntm-login, .ntm-dashboard {
        margin: 10px;
        padding: 15px;
        max-width: 95%;
    }

    .ntm-login h3, .ntm-dashboard h3 {
        font-size: 16px;
    }

    .ntm-login input[type=text],
    .ntm-login input[type=email],
    .ntm-login textarea,
    .ntm-dashboard select,
    .ntm-dashboard input[type=file] {
        padding: 10px;
        font-size: 14px;
    }

    .ntm-login button, .ntm-dashboard button {
        font-size: 14px;
        padding: 10px;
    }
}
.ntm-single-container{
    max-width:900px;
    margin:40px auto;
    padding:20px;
}

.ntm-title{
    margin-bottom:20px;
}

.ntm-upload-box{
    background:#f9f9f9;
    padding:20px;
    border-radius:10px;
}

.ntm-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.ntm-btn{
    background:#1154a5;
    color:#fff;
    border:none;
    padding:12px 18px;
    border-radius:6px;
    cursor:pointer;
    font-size:15px;
    text-align:center;
}

.ntm-btn:hover{
    background:#0d4487;
}

.ntm-alert{
    padding:12px;
    border-radius:6px;
    margin-bottom:15px;
}

.ntm-success{
    background:#e6f6ea;
    color:#1e7e34;
}

.ntm-error{
    background:#fdecea;
    color:#b02a37;
}

.ntm-closed{
    background:#fdecea;
    color:#b02a37;
}

.ntm-expired{
    background:#fff4e5;
    color:#cc7a00;
}

/* موبایل */
@media(max-width:768px){
    .ntm-single-container{
        padding:15px;
    }

    .ntm-btn{
        width:100%;
    }
}
.ntm-file-label{
    display:flex;
    flex-direction:column;
    gap:10px;
    cursor:pointer;
}

.ntm-file-btn{
    background:#1154a5;
    color:#fff;
    padding:10px;
    border-radius:6px;
    text-align:center;
}

.ntm-file-name{
    font-size:14px;
    color:#666;
}
.ntm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ntm-tab {
    padding: 10px 20px;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
}

.ntm-tab.active {
    background: #0073aa;
    color: #fff;
}

.ntm-tab-content {
    display: none;
}

.ntm-tab-content.active {
    display: block;
}

/* ====== GRID ====== */
.ntm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

/* ====== CARD ====== */
.ntm-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 140px;
    transition: 0.25s ease;
}

.ntm-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* ====== IMAGE ====== */
.ntm-card-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

/* ====== BODY ====== */
.ntm-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110px; /* ارتفاع ثابت */
}

/* ====== TITLE ====== */
.ntm-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

/* ====== STATUS ====== */
.ntm-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    width: fit-content;
}

.ntm-status.active {
    background: #28a745;
    color: #fff;
}

.ntm-status.inactive {
    background: #dc3545;
    color: #fff;
}

/* ====== DATE ====== */
.ntm-expire {
    font-size: 13px;
    color: #555;
    min-height: 18px; /* ثابت برای یکسان‌سازی ارتفاع */
}

/* ====== MOBILE ====== */
@media (max-width: 480px) {

    .ntm-card {
        flex-direction: column;
        text-align: center;
        min-height: 300px;
        padding: 14px;
    }

    .ntm-card-img {
        width: 100%;
        height: 200px;
    }

    .ntm-card-body {
        height: auto;
        justify-content: center;
        gap: 10px;
    }

    .ntm-status {
        margin: 0 auto;
    }
}

.ntm-profile-wrapper {
    max-width: 480px;
    margin: 40px auto;
    padding: 15px;
}

.ntm-profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.ntm-profile-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.ntm-profile-desc {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.ntm-field {
    margin-bottom: 18px;
}

.ntm-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.ntm-field input,
.ntm-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: 0.2s;
}

.ntm-field input:focus,
.ntm-field textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

.ntm-btn-primary {
    width: 100%;
    padding: 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.ntm-btn-primary:hover {
    background: #005f8a;
}
.ntm-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.ntm-success {
    background: #e6f7ee;
    border: 1px solid #3bbf72;
    color: #1f7a4d;
}
