:root {
    --sm-primary-color: #F63049;
    --sm-secondary-color: #D02752;
    --sm-accent-color: #8A244B;
    --sm-dark-color: #111F35;
    --sm-white-color: #FFFFFF;

    /* Pastel Shades */
    --sm-bg-light: #F8FAFC;
    --sm-border-color: #E2E8F0;
    --sm-text-gray: #718096;
    --sm-pastel-red: #FFF5F5;
    --sm-pastel-pink: #FFF0F3;

    /* System Globals */
    --sm-radius: 12px;
    --sm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sm-content-wrapper, .sm-admin-dashboard, .sm-container,
.sm-content-wrapper *:not(.dashicons), .sm-admin-dashboard *:not(.dashicons), .sm-container *:not(.dashicons) {
    font-family: 'Rubik', sans-serif !important;
    color: var(--sm-dark-color);
}

.sm-btn, .sm-btn * {
    color: white !important;
}

.sm-btn-outline, .sm-btn-outline * {
    color: var(--sm-text-gray) !important;
}

.sm-content-wrapper input,
.sm-content-wrapper select,
.sm-content-wrapper textarea,
.sm-content-wrapper button,
.sm-admin-dashboard input,
.sm-admin-dashboard select,
.sm-admin-dashboard textarea,
.sm-admin-dashboard button,
.sm-container input,
.sm-container select,
.sm-container textarea,
.sm-container button {
    font-family: 'Rubik', sans-serif !important;
}

/* Unified Table Design */
.sm-table-container {
    background: var(--sm-white-color);
    border-radius: var(--sm-radius);
    border: 1px solid var(--sm-border-color);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--sm-shadow);
}

.sm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.sm-table th {
    background: var(--sm-bg-light);
    padding: 15px 20px;
    font-weight: 700;
    color: var(--sm-dark-color);
    border-bottom: 2px solid var(--sm-border-color);
}

.sm-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--sm-border-color);
    vertical-align: middle;
}

.sm-table tr:last-child td {
    border-bottom: none;
}

.sm-table tr:hover {
    background-color: var(--sm-pastel-red);
}

/* Unified Button Design */
.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 8px;
    font-size: 14px;
    background: var(--sm-primary-color);
    color: white;
    text-decoration: none;
}

.sm-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(246, 48, 73, 0.2);
    color: white;
}

.sm-btn-secondary {
    background: var(--sm-secondary-color);
}

.sm-btn-accent {
    background: var(--sm-accent-color);
}

.sm-btn-outline {
    background: transparent;
    border: 1px solid var(--sm-border-color);
    color: var(--sm-text-gray);
}

.sm-btn-outline:hover {
    background: var(--sm-bg-light);
    color: var(--sm-dark-color);
}

/* Unified Form Elements */
.sm-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--sm-dark-color);
    font-size: 14px;
}

.sm-input, .sm-select, .sm-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--sm-border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: border-color 0.2s;
}

.sm-input:focus, .sm-select:focus, .sm-textarea:focus {
    outline: none;
    border-color: var(--sm-primary-color);
    box-shadow: 0 0 0 3px rgba(246, 48, 73, 0.1);
}

.sm-form-group {
    margin-bottom: 20px;
}

/* Unified Modal Design */
.sm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 31, 53, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sm-modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--sm-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sm-modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sm-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-modal-header h3 {
    margin: 0;
    color: var(--sm-dark-color);
    font-weight: 800;
    border: none;
    padding: 0;
}

.sm-modal-close {
    background: var(--sm-bg-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sm-text-gray);
    transition: 0.2s;
}

.sm-modal-close:hover {
    color: var(--sm-primary-color);
    background: var(--sm-pastel-red);
}

/* Status Badges */
.sm-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}

.sm-badge-low { background: #EBF8FF; color: #3182CE; }
.sm-badge-medium { background: #FFFAF0; color: #DD6B20; }
.sm-badge-high { background: #FFF5F5; color: #E53E3E; }

/* Dashboard Header */
.sm-main-header {
    background: var(--sm-bg-light);
    color: var(--sm-dark-color);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--sm-shadow);
    border-bottom: 1px solid var(--sm-border-color);
}

/* Stat Cards */
.sm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}
.sm-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--sm-radius);
    border: 1px solid var(--sm-border-color);
    box-shadow: var(--sm-shadow);
    text-align: center;
}

/* Tabs */
.sm-tabs-wrapper {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--sm-border-color);
    padding: 0 10px;
}

.sm-tab-btn {
    padding: 12px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: var(--sm-text-gray);
    border-bottom: 3px solid transparent;
    transition: 0.2s;
    font-size: 14px;
}

.sm-tab-btn:hover {
    color: var(--sm-primary-color);
    background: var(--sm-pastel-red);
}

.sm-tab-btn.sm-active {
    color: var(--sm-primary-color);
    border-bottom-color: var(--sm-primary-color);
}

.sm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none !important;
    color: var(--sm-dark-color) !important;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.sm-dropdown-item:hover { background: var(--sm-bg-light); color: var(--sm-primary-color) !important; }

@keyframes smFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
