/**
 * Components & Forms
 */

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #7587c3;
    color: white;
}

.btn-primary:hover {
    background: #6577b3;
    text-decoration: none;
}

.btn-secondary {
    background: #6484fd;
    color: white;
}

.btn-secondary:hover {
    background: #7587c3;
    text-decoration: none;
}

.btn-danger {
    background: #fee;
    color: #c00;
}

.btn-danger:hover {
    background: #fcc;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-link {
    color: #2563eb;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Forms */
.form-section {
    margin-bottom: 32px;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[type="color"] {
    height: 40px;
    padding: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.description {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

/* Editor Container */
.editor-container {
    background: white;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

/* Notices */
.notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.notice-info {
    background: #eff6ff;
    border-color: #7587c3;
    color: #5567a3;
}

.notice-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.notice-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.notice-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

/* Modal (for future use) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Utilities */
.text-muted {
    color: #64748b;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

