/* Form and Button Styles */
/* Reusable form components and button variations */

/* Form Components */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

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

.help-text-inline {
    font-size: var(--font-size-base);
    color: #666;
    margin-bottom: 15px;
}

/* Button Base Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Size Variations */
.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 12px 24px;
    font-size: var(--font-size-lg);
}

/* Button Color Variations */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: 1px solid var(--success-color);
}

.btn-success:hover:not(:disabled) {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    border: 1px solid var(--error-color);
}

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
    border: 1px solid var(--warning-color);
}

.btn-warning:hover:not(:disabled) {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    border: 1px solid var(--info-color);
}

.btn-info:hover:not(:disabled) {
    background-color: #138496;
    border-color: #117a8b;
}

/* Button States */
.btn-disabled,
.btn[disabled] {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Enhanced Form Styles for Specific Contexts */
.user-form input[type="email"],
.user-form input[type="password"],
.user-form input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background-color: #fafafa;
}

.user-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.user-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: var(--font-size-base);
}

.user-form .form-group label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.user-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.user-form .form-actions .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-sm);
}

/* Special Form Field Types */
.form-field {
    height: 30px;
    background-color: #fafafa;
    border: 1px solid #eee;
}

.form-field.circles {
    height: auto;
    background: none;
    border: none;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 5px 0;
}

.circle-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11pt;
}

.circle {
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10pt;
    font-weight: 500;
    background-color: white;
}
