/* Notifications Telegram for WooCommerce - Admin Styles */

.ntwf-settings-wrap {
    max-width: 1200px;
    background: #f0f0f1;
    margin: 20px 20px 0 2px;
}

.ntwf-settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ntwf-settings-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 600;
}

.ntwf-settings-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.ntwf-main-content {
    float: left;
    width: 68%;
}

.ntwf-main-content .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: none;
}

.ntwf-sidebar {
    float: right;
    width: 30%;
}

.ntwf-sidebar-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ntwf-sidebar-box h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
    color: #1d2327;
    font-size: 18px;
}

.ntwf-instructions {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #2196F3;
}

.ntwf-instructions h3 {
    margin-top: 0;
    color: #1565C0;
    font-size: 20px;
}

.ntwf-instructions ol {
    margin-bottom: 0;
    color: #333;
}

.ntwf-instructions li {
    margin-bottom: 8px;
}

.ntwf-section-description {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    margin: -10px 0 20px 0;
    border-left: 3px solid #667eea;
}

.ntwf-section-description p {
    margin: 0;
    color: #50575e;
    font-size: 14px;
}

.ntwf-settings-wrap .form-table th {
    width: 220px;
    font-weight: 600;
    color: #1d2327;
}

.ntwf-settings-wrap h2 {
    color: #1d2327;
    font-size: 20px;
    font-weight: 600;
    padding: 20px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.ntwf-settings-wrap .form-table {
    margin: 0;
    background: #fff;
}

.ntwf-settings-wrap .form-table td {
    padding: 20px;
}

.ntwf-settings-wrap .form-wrap {
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ntwf-settings-wrap .submit {
    background: #fff;
    padding: 20px;
    margin: 0;
    border-top: 1px solid #e5e5e5;
}

.ntwf-settings-wrap .submit .button-primary {
    background: #667eea;
    border-color: #667eea;
    padding: 8px 24px;
    height: auto;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 600;
}

.ntwf-settings-wrap .submit .button-primary:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(32px);
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Template Editor */
.ntwf-template-editor {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
}

.ntwf-template-vars {
    margin-top: 20px;
    background: #f5f7fa;
    padding: 20px;
    border-radius: 6px;
}

.ntwf-template-vars h4 {
    margin-top: 0;
    color: #1d2327;
}

.ntwf-vars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ntwf-var-group {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.ntwf-var-group h5 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
}

.ntwf-var-group code {
    display: inline-block;
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #d63638;
    margin-bottom: 5px;
}

.ntwf-template-tips {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.ntwf-template-tips code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #2271b1;
}

.ntwf-select-multiple {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.ntwf-settings-wrap .regular-text {
    border-radius: 4px;
}

.ntwf-settings-wrap .button {
    border-radius: 4px;
}

.ntwf-settings-wrap .card code {
    background: #f0f0f1;
    padding: 10px;
    display: block;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .ntwf-main-content,
    .ntwf-sidebar {
        float: none;
        width: 100%;
    }
    
    .ntwf-vars-grid {
        grid-template-columns: 1fr;
    }
}