/* ==================== FONTS ==================== */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* ==================== PAGE BREADCRUMB ==================== */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

/* ==================== PAGE CONTAINER ==================== */
.device-config-page {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 52px);
    font-family: 'Inter', sans-serif;
    gap: 24px;
    align-items: flex-start;
}

/* ==================== LEFT PANEL ==================== */
.device-config-left-panel {
    flex: 0 1 52%;
    max-width: 720px;
    min-width: 420px;
    border-right: 0.63px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

/* ==================== HEADER SECTION ==================== */
.device-config-header {
    width: 100%;
    height: 140.6px;
    padding: 16px;
    padding-bottom: 0.63px;
    gap: 3.99px;
    background: #FFFFFF;
    border-bottom: 0.63px solid #E5E7EB;
    box-sizing: border-box;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
    margin-bottom: 12px;
}

.breadcrumb-home-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.breadcrumb-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

.breadcrumb-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.breadcrumb-current {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

/* ==================== PAGE TITLE ==================== */
.page-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #000000;
    margin: 0;
}

.info-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    cursor: pointer;
}

.page-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0 0 12px 0;
}

/* ==================== SEARCH BAR ==================== */
.search-bar-wrapper {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 0.63px solid #D1D5DB;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    padding: 4px 12px 4px 12px;
    box-sizing: border-box;
    position: relative;
}

.search-bar-wrapper .search-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    position: absolute;
    left: 12px;
}

.search-bar-wrapper .search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #111827;
    padding-left: 28px;
    outline: none;
}

.search-bar-wrapper .search-input::placeholder {
    color: #6B7280;
}

/* ==================== USERS LIST SECTION ==================== */
.device-config-users-container {
    position: relative;
    min-height: 420px;
}

.device-config-section-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.device-config-section-loader .spinner-overlay {
    padding: 0;
}

.users-list-section {
    width: 100%;
    flex: 1;
    padding: 16px;
    background: #F9FAFB;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==================== USER CARD ==================== */
.user-card {
    width: 100%;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    overflow: hidden;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
}

.user-card-header:hover {
    background: #F9FAFB;
}

.user-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expand-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.expand-arrow.rotated {
    transform: rotate(90deg);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

.config-count-pill {
    width: auto;
    height: 21.23px;
    border-radius: 6px;
    border: 0.63px solid #93C5FD;
    padding: 2px 8px;
    background: #DBEAFE;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #1D4ED8;
}

.user-details-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email,
.user-location {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #6B7280;
}

/* ==================== ADD CONFIG BUTTON ==================== */
.add-config-btn {
    width: 120.8px;
    height: 32px;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.add-config-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.add-config-btn .plus-icon {
    font-size: 16px;
    font-weight: 400;
}

/* ==================== CONFIGS SECTION ==================== */
.configs-section {
    padding: 16px;
    background: #F9FAFB;
    border-top: 0.63px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================== CONFIG CARD ==================== */
.config-card {
    width: 100%;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    padding: 12.62px;
    padding-bottom: 12.62px;
    transition: all 0.2s ease;
}

.config-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-card.selected {
    border-color: #083050;
    border-width: 2px;
}

.config-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.config-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

.status-pill {
    height: 21.23px;
    border-radius: 6px;
    padding: 2px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.status-pill.active {
    background: #DCFCE7;
    border: 0.63px solid #B9F8CF;
    color: #15803D;
}

.config-details-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #4B5563;
}

.separator {
    color: #9CA3AF;
}

/* ==================== CONFIG ACTIONS ==================== */
.config-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn img {
    width: 16px;
    height: 16px;
}

.action-btn.edit-btn:hover {
    background: #F9FAFB;
}

.action-btn.mobile-btn {
    background: #083050;
    border: none;
}

.action-btn.mobile-btn:hover {
    background: #0A3D5F;
}

.action-btn.mobile-btn img,
.mobile-icon-white {
    filter: brightness(0) invert(1);
}

.action-btn.delete-btn {
    border-color: #FFC9C9;
}

.action-btn.delete-btn:hover {
    background: #FEF2F2;
}

.action-btn.delete-btn img {
    filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* ==================== RIGHT PANEL ==================== */
.device-config-right-panel {
    flex: 1 1 45%;
    min-height: 939.26px;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    width: 448px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(180deg, #083050 0%, #0A3D5F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.empty-state-icon img {
    width: 40px;
    height: 40px;
}

.empty-state-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 30.8px;
    color: #111827;
    margin: 0 0 8px 0;
}

.empty-state-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0 0 24px 0;
    max-width: 350px;
}

.empty-state-hint {
    display: flex;
    align-items: center;
    gap: 8px;
}

.green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00C950;
}

.hint-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #9CA3AF;
}

.hint-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #083050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.hint-icon img {
    width: 12px;
    height: 12px;
}

/* ==================== MOBILE CONFIG MODAL ==================== */
.mobile-config-modal {
    width: 100%;
    max-width: 600px;
    max-height: 1035px;
    border-radius: 30px;
    border: 1px solid #E6E8EB;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.63px solid #E5E7EB;
    box-sizing: border-box;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(180deg, #083050 0%, #105583 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-box img {
    width: 28px;
    height: 28px;
}

.modal-title-block {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #111827;
    margin: 0;
}

.modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close-btn:hover {
    background: #F3F4F6;
    color: #111827;
}

/* Modal Body */
.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Preview Container */
.preview-container {
    width: 100%;
    min-height: 340px;
    border-radius: 20px;
    background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 32px;
}

.preview-avatar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #083050 0%, #105583 100%);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-type-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    height: 21.23px;
    border-radius: 6px;
    border: 0.63px solid #93C5FD;
    padding: 2px 8px;
    background: #DBEAFE;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #1D4ED8;
}

.preview-avatar {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10B981;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Phone Preview */
.phone-preview {
    width: 340px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 32px;
}

.phone-header {
    width: 100%;
    height: 56px;
    background: #083050;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 12px 12px 0 0;
}

.phone-time-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-time {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #FFFFFF;
}

.phone-status {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}

.phone-content {
    padding: 20px;
}

.phone-activities-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #374151;
    margin-bottom: 12px;
}

.phone-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.phone-activity-item {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.phone-activity-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #D1D5DB;
}

.phone-activity-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00C950;
}

.phone-activity-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 9px;
    line-height: 11.25px;
    color: #374151;
    text-align: center;
}

/* Assignments Section */
.assignments-section {
    margin-top: 24px;
}

.assignments-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #111827;
    margin: 0 0 4px 0;
}

.assignments-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    margin: 0 0 16px 0;
}

.assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.assignment-card {
    width: 100%;
    min-height: 65px;
    border-radius: 8px;
    border: 0.63px solid #B9F8CF;
    background: rgba(240, 253, 244, 0.5);
    padding: 12.62px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
}

.assignment-card.unassigned {
    border-color: #E5E7EB;
    background: #FFFFFF;
}

.assignment-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assignment-check-icon.green {
    background: #00C950;
}

.assignment-check-icon.gray {
    background: #D1D5DB;
}

.assignment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.assignment-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
}

.assignment-status {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #4B5563;
}

.assignment-pill {
    height: 21.23px;
    border-radius: 6px;
    border: 0.63px solid transparent;
    padding: 2px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    flex-shrink: 0;
}

.assignment-pill.assigned {
    background: #DCFCE7;
    color: #008236;
}

.assignment-pill.unassigned {
    background: #E5E7EB;
    color: #4B5563;
}

/* Modal Footer */
.modal-footer {
    width: 100%;
    height: 84.61px;
    padding: 24.62px 24px;
    background: #F9FAFB;
    border-top: 0.63px solid #E5E7EB;
    box-sizing: border-box;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #4B5563;
}

/* ==================== CONFIG MODAL OVERLAY ==================== */
.config-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.config-modal {
    width: 512px;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    box-shadow: 0px 4px 6px -4px rgba(0, 0, 0, 0.1), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.config-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px 16px 20px;
    position: relative;
}

.config-modal-icon {
    width: 35px;
    height: 35px;
    border-radius: 7px;
    background: linear-gradient(180deg, #083050 0%, #105583 100%);
    box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-modal-icon img {
    width: 18px;
    height: 18px;
}

.config-modal-title-block {
    flex: 1;
}

.config-modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #111827;
    margin: 0;
}

.config-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12.25px;
    line-height: 17.5px;
    color: #6B7280;
    margin: 0;
}

.config-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-modal-close:hover {
    color: #111827;
}

/* Modal Body */
.config-modal-body {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.config-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-form-group.toggle-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.config-form-group.inline-group {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.page-title:focus {
    outline: none;
    box-shadow: none;
}


.config-form-group.inline-group .config-form-label {
    flex-shrink: 0;
}

.config-form-group.inline-group .status-select {
    width: 100px;
}

.edit-modal-icon {
    filter: brightness(0) invert(1);
}

.config-form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    color: #111827;
}

.config-form-input,
.config-form-select {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #F9FAFB;
    padding: 4px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    outline: none;
}

.config-form-input::placeholder {
    color: #9CA3AF;
}

.config-form-input:focus,
.config-form-select:focus {
    outline: 1px solid #083050;
}

.config-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.config-form-select.status-select {
    width: 128px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #D1D5DB;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #083050;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Modal Footer */
.config-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 25px 25px 25px;
}

.config-btn-cancel {
    height: 36px;
    border-radius: 8px;
    border: 0.63px solid #E5E7EB;
    background: #FFFFFF;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-btn-cancel:hover {
    background: #F9FAFB;
}

.config-btn-primary {
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #083050;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-btn-primary:hover {
    background: #0A3D5F;
}

.config-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */

/* Large screens (1400px and below) */
@media (max-width: 1400px) {
    .device-config-left-panel {
        width: 50%;
        min-width: 450px;
    }
    
    .device-config-header,
    .users-list-section {
        width: 100%;
    }
    
    .search-bar-wrapper,
    .user-card,
    .config-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-config-modal {
        width: 100%;
        max-width: 600px;
    }
    
    .assignment-card {
        width: 100%;
    }
    
    .phone-preview {
        width: 300px;
    }
}

/* Medium screens (1200px and below) */
@media (max-width: 1200px) {
    .device-config-left-panel {
        width: 45%;
        min-width: 400px;
    }
    
    .assignments-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-icon-box {
        width: 48px;
        height: 48px;
    }
    
    .modal-icon-box img {
        width: 24px;
        height: 24px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .preview-container {
        min-height: 300px;
    }
    
    .config-modal {
        width: 90%;
        max-width: 480px;
    }
}

/* Tablet screens (992px and below) */
@media (max-width: 992px) {
    .page-breadcrumb {
        padding: 12px 16px;
    }
    
    .device-config-page {
        flex-direction: column;
    }
    
    .device-config-left-panel {
        width: 100%;
        min-width: unset;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .device-config-header {
        width: 100%;
        height: auto;
        padding: 16px;
    }
    
    .users-list-section {
        width: 100%;
        max-height: 400px;
    }
    
    .device-config-right-panel {
        min-height: 500px;
        padding: 16px;
    }
    
    .mobile-config-modal {
        width: 100%;
        max-width: none;
        border-radius: 16px;
        max-height: none;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .preview-container {
        min-height: 280px;
        padding: 16px;
    }
    
    .phone-preview {
        width: 280px;
    }
    
    .empty-state {
        width: 100%;
        padding: 24px;
    }
    
    .config-modal-overlay {
        padding: 16px;
    }
    
    .config-modal {
        width: 100%;
        max-width: 450px;
    }
}

/* Mobile screens (768px and below) */
@media (max-width: 768px) {
    .page-breadcrumb {
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .breadcrumb-text,
    .breadcrumb-current {
        font-size: 12px;
    }
    
    .device-config-header {
        padding: 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .page-description {
        font-size: 12px;
    }
    
    .search-bar-wrapper {
        height: 36px;
    }
    
    .user-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .add-config-btn {
        width: 100%;
        justify-content: center;
    }
    
    .config-card-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .config-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .modal-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .modal-close-btn {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    
    .modal-icon-box {
        width: 40px;
        height: 40px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .preview-container {
        min-height: 250px;
        border-radius: 12px;
    }
    
    .phone-preview {
        width: 100%;
        max-width: 260px;
    }
    
    .phone-activities-grid {
        gap: 8px;
    }
    
    .phone-activity-item {
        width: 70px;
        height: 60px;
    }
    
    .assignments-section {
        margin-top: 16px;
    }
    
    .assignments-title {
        font-size: 14px;
    }
    
    .assignment-card {
        padding: 10px;
    }
    
    .assignment-check-icon {
        width: 28px;
        height: 28px;
    }
    
    .assignment-name {
        font-size: 13px;
    }
    
    .assignment-status {
        font-size: 11px;
    }
    
    .modal-footer {
        padding: 16px;
    }
    
    .config-modal {
        width: 100%;
        max-width: none;
        margin: 0 12px;
    }
    
    .config-modal-header {
        padding: 16px;
    }
    
    .config-modal-body {
        padding: 0 16px;
    }
    
    .config-modal-footer {
        padding: 16px;
        flex-direction: column;
    }
    
    .config-btn-cancel,
    .config-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile screens (480px and below) */
@media (max-width: 480px) {
    .page-breadcrumb {
        padding: 8px 10px;
    }
    
    .device-config-header {
        padding: 10px;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    .users-list-section {
        padding: 10px;
        gap: 8px;
    }
    
    .user-card-header {
        padding: 12px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .config-count-pill {
        font-size: 10px;
    }
    
    .configs-section {
        padding: 10px;
    }
    
    .config-card {
        padding: 10px;
    }
    
    .config-name {
        font-size: 13px;
    }
    
    .phone-preview {
        max-width: 240px;
    }
    
    .phone-activity-item {
        width: 60px;
        height: 50px;
    }
    
    .phone-activity-name {
        font-size: 8px;
    }
    
    .empty-state-title {
        font-size: 18px;
    }
    
    .empty-state-description {
        font-size: 12px;
    }
}

/* ==================== STATUS PILLS ==================== */
.status-pill.inactive {
    background: #FEE2E2;
    color: #DC2626;
}

/* ==================== CREW ROW ==================== */
.user-crew-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.crew-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: #6B7280;
}

.crew-name {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #374151;
}

/* ==================== NO DATA MESSAGES ==================== */
.no-activities,
.no-modules-message {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #6B7280;
    text-align: center;
    padding: 16px;
}

/* ==================== PAGINATION WRAPPER ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: flex-start;
    padding: 16px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

