/* Amoos Functionality Suite Admin Styles */

.amoos-section {
    margin-bottom: 40px;
}

.amoos-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #23282d;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

.amoos-functionalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.amoos-functionality-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.amoos-functionality-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.amoos-functionality-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 18px;
}

.amoos-functionality-card p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.4;
}

.amoos-functionality-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

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

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

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

.amoos-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.amoos-toggle input:checked + .amoos-toggle-slider {
    background-color: #0073aa;
}

.amoos-toggle input:checked + .amoos-toggle-slider:before {
    transform: translateX(26px);
}

.amoos-toggle:hover .amoos-toggle-slider {
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

/* Info Box Styles */
.amoos-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.amoos-info-box h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.amoos-info-box p {
    margin: 0 0 10px 0;
    color: #6c757d;
    line-height: 1.5;
}

.amoos-info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.amoos-info-box li {
    margin: 5px 0;
    color: #6c757d;
}

.amoos-info-box code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

/* Form Table Enhancements */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

.form-table td {
    padding: 20px 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table input[type="password"],
.form-table textarea,
.form-table select {
    width: 100%;
    max-width: 400px;
}

.form-table .large-text {
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amoos-functionalities-grid {
        grid-template-columns: 1fr;
    }
    
    .amoos-functionality-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .amoos-functionality-actions .button {
        text-align: center;
    }
}

/* Loading States */
.amoos-loading {
    opacity: 0.6;
    pointer-events: none;
}

.amoos-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.amoos-message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.amoos-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.amoos-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.amoos-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
