/* TurkoPos v3 Web Panel - SMS Ayarları Stiller */
/* Mobil uygulamadaki SMS Settings tasarımının web karşılığı */

/* Sayfa Başlığı */
.sms-settings-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.sms-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2C3E50, #34495E);
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.25);
}

.sms-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sms-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sms-page-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.sms-page-header p {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.75;
}

.sms-refresh-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sms-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Halı Yıkama Süresi Kartı */
.sms-duration-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2C3E50, #34495E);
    border-radius: 12px;
    color: white;
    box-shadow: 0 3px 8px rgba(44, 62, 80, 0.2);
}

.sms-duration-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sms-duration-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sms-duration-title {
    font-size: 14px;
    font-weight: 600;
}

.sms-duration-subtitle {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.sms-duration-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 4px 6px;
}

.sms-duration-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.15s;
}

.sms-duration-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sms-duration-value {
    width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

/* SMS Şablonları Kartı */
.sms-templates-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sms-templates-card:hover {
    border-color: #9C27B0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.12);
}

.sms-templates-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sms-templates-icon {
    width: 38px;
    height: 38px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9C27B0;
    font-size: 16px;
}

.sms-templates-title {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

.sms-templates-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.sms-templates-arrow {
    color: #d1d5db;
    font-size: 14px;
}

/* Bölüm Etiketi */
.sms-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    margin-bottom: 6px;
}

.sms-section-label-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.sms-section-label span {
    font-size: 12px;
    font-weight: 600;
}

/* Kategori Başlığı */
.sms-category-header {
    width: 100%;
    margin: 14px 0 8px;
    padding: 11px 18px;
    background: linear-gradient(to right, #2C3E50, #34495E);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.18);
}

.sms-category-header span {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Toggle Kartları */
.sms-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    margin-bottom: 3px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    user-select: none;
}

.sms-toggle-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sms-toggle-card.active {
    border-color: #a5b4fc;
    background: #fafbff;
}

.sms-toggle-card.sms-info-card {
    border-left: 3px solid #f59e0b;
}

.sms-toggle-info {
    flex: 1;
    margin-right: 12px;
}

.sms-toggle-title {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}

.sms-toggle-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Custom Toggle Switch (iOS tarzı) */
.sms-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.sms-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sms-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 26px;
    transition: all 0.3s;
}

.sms-switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sms-switch input:checked + .sms-switch-slider {
    background: #4CAF50;
}

.sms-switch input:checked + .sms-switch-slider::before {
    transform: translateX(22px);
}

/* Loading */
.sms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #6b7280;
    gap: 12px;
}

.sms-loading i {
    font-size: 32px;
    color: #3b82f6;
}

.sms-loading p {
    font-size: 15px;
}

/* Modal */
.sms-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: 10000;
    animation: smsFadeIn 0.2s ease;
}

@keyframes smsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sms-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: smsSlideUp 0.25s ease;
}

@keyframes smsSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-radius: 16px 16px 0 0;
    color: white;
}

.sms-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sms-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.sms-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sms-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.sms-template-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
}

.sms-template-info i {
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

.sms-template-info p {
    font-size: 12px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.sms-template-info code {
    background: #dbeafe;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    color: #1e40af;
}

.sms-template-field {
    margin-bottom: 14px;
}

.sms-template-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.sms-template-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    line-height: 1.5;
    box-sizing: border-box;
}

.sms-template-field textarea:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.sms-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #f3f4f6;
}

.sms-btn-secondary {
    padding: 9px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.sms-btn-secondary:hover {
    background: #e5e7eb;
}

.sms-btn-primary {
    padding: 9px 20px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.sms-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .sms-settings-page {
        padding: 12px;
    }

    .sms-page-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .sms-duration-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .sms-duration-controls {
        align-self: flex-end;
    }

    .sms-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}
