* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Modern Horizontal Navbar Styles */
.navbar {
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 35px;
    z-index: 1000;
    max-width: 1200px;
    margin: 35px auto 0 auto;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border-radius: 8px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: 90%;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.nav-link.active::before {
    opacity: 0;
}

.nav-link.active::after {
    width: 0;
}

/* Content wrapper to position below navbar */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 63px);
    max-width: 500px;
    margin: 0 auto;
}

/* Section containers */
.section-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.section-content.active {
    display: block;
}

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

.empty-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 
                0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 70px 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.empty-section h2 {
    color: #1a1a2e;
    font-size: 36px;
    margin-bottom: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-section p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
    font-weight: 500;
}

.empty-section .icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.25;
    filter: grayscale(30%);
}

/* Responsive navbar */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 13px;
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .navbar-nav {
        gap: 4px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .navbar-container {
        padding: 0 10px;
    }
    
    .navbar-nav {
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .navbar-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .navbar-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.6);
        border-radius: 2px;
    }
    
    .nav-link {
        padding: 12px 14px;
        font-size: 11px;
        gap: 4px;
    }
    
    .content-wrapper {
        padding: 20px 10px;
    }
}

.container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 
                0 10px 40px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 50px 50px;
    max-width: 1000%;
    width: 120%;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

h1 {
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

input[type="file"] {
    padding: 12px;
    cursor: pointer;
    background: rgba(102, 126, 234, 0.05);
    border: 2px dashed #d0d7de;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

input::placeholder {
    color: #94a3b8;
}

input[readonly], textarea[readonly], select[readonly] {
    background: rgba(241, 245, 249, 0.6);
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: #64748b;
}

input[readonly]:focus, textarea[readonly]:focus, select[readonly]:focus {
    border-color: #e2e8f0;
    box-shadow: none;
    transform: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-small {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

/* Toggle Switch Styles */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    top: 1px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.3px;
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
}

.info-box {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
    border-radius: 8px;
    padding: 12px 16px;
    backdrop-filter: blur(5px);
}

.info-box strong {
    color: #667eea;
}

/* ============================================
   SPECIFIC CONTAINER CLASSES FOR EACH SECTION
   ============================================ */

/* Number Management Container */
.container-number-management {
    max-width: 120%;
    width: 112%;
    padding: 30px 40px;
}

/* Sales Configuration Container */
.container-sales {
    max-width: 200%;
    width: 123%;
    padding: 30px 40px;
}

/* Customer Support Configuration Container */
.container-customer-support {
    max-width: 200%;
    width: 123%;
    padding: 30px 40px;
}

/* Survey Configuration Container */
.container-survey {
    max-width: 200%;
    width: 123%;
    padding: 30px 40px;
}

/* Reminder Configuration Container */
.container-reminder {
    max-width: 200%;
    width: 123%;
    padding: 30px 40px;
}

/* Others Configuration Container */
.container-others {
    max-width: 200%;
    width: 123%;
    padding: 30px 40px;
}

/* Services Management Container - Widest */
.container-services {
    max-width: 200%;
    width: 180%;
    padding: 50px 40px;
    margin-left: -40%;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-services h1,
.container-services .subtitle {
    text-align: center;
}

/* ============================================
   SERVICES MANAGEMENT SECTION
   ============================================ */

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Service Card Hover Effect */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

/* Service Card Header */
.service-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.service-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* Service Card Body */
.service-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: space-between;
}

.service-body p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.service-body .toggle-switch {
    margin-top: auto;
}

/* ============================================
   END SERVICES MANAGEMENT SECTION
   ============================================ */

.status-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease;
}

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

.status-message.show {
    display: block;
}

.status-message.success {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.95), rgba(195, 230, 203, 0.95));
    color: #155724;
    border-left-color: #28a745;
}

.status-message.error {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.95), rgba(245, 198, 203, 0.95));
    color: #721c24;
    border-left-color: #dc3545;
}

.status-message.info {
    background: linear-gradient(135deg, rgba(209, 236, 241, 0.95), rgba(190, 229, 235, 0.95));
    color: #0c5460;
    border-left-color: #17a2b8;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.help-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.5;
    font-weight: 500;
}

.call-icon {
    display: inline-block;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@media (max-width: 600px) {
    .container {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 26px;
    }
}

/* Round Reminder Button */
.btn-round-reminder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-round-reminder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-round-reminder:hover:not(:disabled)::before {
    width: 250px;
    height: 250px;
}

.btn-round-reminder:hover:not(:disabled) {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-round-reminder:active:not(:disabled) {
    transform: scale(1.02) translateY(-2px);
}

.btn-round-reminder:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: 0 5px 15px rgba(156, 163, 175, 0.3);
}

.btn-round-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.btn-round-icon {
    font-size: 48px;
    animation: pulse 2s ease-in-out infinite;
}

.btn-round-reminder:disabled .btn-round-icon {
    animation: none;
}

.btn-round-text {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 140px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

