/* ===================================================================
   GLOBAL PAGE WRAPPER
=================================================================== */

.smt-wrap {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================================================
   PREMIUM HEADER
=================================================================== */

.smt-header {
    padding: 32px 40px;
    border-radius: 18px;
    box-shadow:
        0 8px 24px rgba(94,93,240,0.25),
        0 4px 12px rgba(94,93,240,0.20);
    margin-bottom: 28px;
}

.smt-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.smt-header-desc {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.smt-module-header {
    background: linear-gradient(135deg, #4e8cff, #7aa9ff)!important;
    color: #fff;
    padding: 28px 32px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow:
        0 4px 12px rgba(78,140,255,0.25),
        0 10px 24px rgba(78,140,255,0.25);
}

.smt-module-header .smt-card-desc {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* ===================================================================
   TABS — PREMIUM NAVIGATION
=================================================================== */

.smt-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding-left: 4px;
    overflow-x: auto;
}

.smt-tab {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    background: #f2f2f7;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all .25s ease;
    border: 1px solid #e2e2ea;
    white-space: nowrap;
}

.smt-tab:hover {
    background: #e9e9f4;
}

.smt-tab.active {
    background: #5e5df0;
    border-color: #5e5df0;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(94,93,240,0.35);
}

/* ===================================================================
   CONTENT AREA
=================================================================== */

.smt-content {
    margin-top: 20px;
}

/* ===================================================================
   MODULES WRAP
=================================================================== */

.smt-modules-wrap {
    background: #fff;
    padding: 30px 35px;
    border-radius: 16px;
    border: 1px solid #e2e2ea;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.05),
        0 6px 16px rgba(0,0,0,0.08);
}

.smt-modules-wrap h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.smt-modules-wrap .description {
    margin-bottom: 24px;
    font-size: 14px;
    color: #555;
}

/* ===================================================================
   MODULES GRID
=================================================================== */

.smt-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

/* ===================================================================
   MODULE CARD — PREMIUM STYLE
=================================================================== */

.smt-module-card {
    background: #ffffff;
    padding: 26px 22px;
    border-radius: 16px;
    border: 1px solid #e5e5ec;
    text-align: center;
    transition: all .25s ease;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.05),
        0 6px 16px rgba(0,0,0,0.07);
    position: relative;
}

.smt-module-card:hover {
    box-shadow:
        0 6px 16px rgba(0,0,0,0.09),
        0 12px 24px rgba(0,0,0,0.10);
    border-color: #ccccdd;
}

.smt-module-card.active {
    border-color: #5e5df0;
}

.smt-module-icon {
    font-size: 42px !important;
    color: #5e5df0;
    margin-bottom: 12px;
}

.smt-module-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.smt-module-desc {
    font-size: 13px;
    color: #666;
    min-height: 40px;
    margin-bottom: 20px;
}

.smt-module-header {
    background: linear-gradient(135deg, #4e8cff, #7aa9ff) !important;
    color: #fff;
    padding: 28px 32px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow:
        0 4px 12px rgba(78,140,255,0.25),
        0 10px 24px rgba(78,140,255,0.25);
}

.smt-module-header .smt-card-desc {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.smt-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e5ec;
    padding: 26px 28px;
    box-shadow:
        0 3px 8px rgba(0,0,0,0.05),
        0 6px 16px rgba(0,0,0,0.07);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.smt-card:hover {
    border-color: #c9c9d1;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.08),
        0 6px 16px rgba(0,0,0,0.10);
}

.smt-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.smt-card-title h3 {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 600;
}

.smt-card .description {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
}

/* ===================================================================
   CONTROLS (TOGGLE + STATUS + OPEN BUTTON)
=================================================================== */

.smt-module-controls {
    margin-top: 10px;
}

.smt-module-status {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* ===================================================================
   PREMIUM TOGGLE (iOS STYLE)
=================================================================== */

.smt-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.smt-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.smt-toggle span {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
}

.smt-toggle span:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.smt-toggle input:checked + span {
    background-color: #5e5df0;
}

.smt-toggle input:checked + span:before {
    transform: translateX(22px);
}

/* ===================================================================
   OPEN BUTTON
=================================================================== */

.smt-open-btn {
    margin-top: 8px;
    display: inline-block;
    border-radius: 8px !important;
}

/* Loading overlay */

.smt-module-card.smt-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Notices */

.smt-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    color: #fff;
    border-radius: 5px;
    z-index: 99999;
    font-size: 14px;
}

.smt-success { background: #4CAF50; }
.smt-error   { background: #e53935; }
.smt-warning { background: #FF9800; }