/* Modern Settings Design */

.settings-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.settings-header {
    margin-bottom: 30px;
    text-align: center;
}

.settings-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.settings-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-label {
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #4299e1;
}

input:focus+.slider {
    box-shadow: 0 0 1px #4299e1;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Role Selector */
.role-selector-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.role-selector-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.role-selector-label {
    font-weight: 600;
    color: #4a5568;
}

.role-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    min-width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.role-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Save Button */
.save-button-container {
    margin-top: 40px;
    text-align: center;
}

.btn-save {
    background-color: #4299e1;
    color: white;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
}

.btn-save:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
}

.btn-save:active {
    transform: translateY(0);
}

.btn-save:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Messages */
.message-container {
    margin-bottom: 20px;
    text-align: center;
}

.message-error {
    color: #e53e3e;
    background: #fff5f5;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
}

.message-success {
    color: #38a169;
    background: #f0fff4;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
}