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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.content {
    padding: 25px;
}

.server-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #4CAF50;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

select, input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.radio-option {
    flex: 1;
    text-align: center;
}

.radio-option input {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px;
    background-color: #f1f1f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-bottom: 0;
}

.radio-option input:checked + label {
    background-color: #4CAF50;
    color: white;
}

button {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

button:disabled {
    background: #cccccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.response-area {
    margin-top: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #2196F3;
}

#response {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.server-info {
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}

.server-info strong {
    color: #2e7d32;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.sms-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4a5568;
}

.sms-content {
    color: #e2e8f0;
    margin-bottom: 5px;
}

.sms-meta {
    color: #a0aec0;
    font-size: 12px;
    margin-bottom: 5px;
}

.sms-time {
    color: #718096;
    font-size: 12px;
}

.sms-reply-link {
    color: #63b3ed;
    text-decoration: none;
    font-size: 12px;
}

.sms-reply-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #fc8181;
    background-color: rgba(252, 129, 129, 0.1);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #fc8181;
}

.success-message {
    color: #68d391;
    background-color: rgba(104, 211, 145, 0.1);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #68d391;
}

.config-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-server-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.config-server-item h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.config-server-item input {
    margin-bottom: 8px;
}

.config-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.config-actions button {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}

.add-server-btn {
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%) !important;
}

.remove-server-btn {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%) !important;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4CAF50;
}

.login-form input {
    margin-bottom: 15px;
}

.login-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.login-info {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-form {
        margin: 50px auto;
        width: 95%;
    }
}