/* Form Styles */
.transaction-form {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 1.25rem;
    
}

/* Two-column grid layout */
.form-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.form-left-column,
.form-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus, .form-select:focus {
    outline: none;
    
    
}

.form-input.error, .form-select.error {
    border-color: #ef4444;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.radio-label:hover {
    /* border-color: #3b82f6; */
    background-color: #f8fafc;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #FFD700;
    background-color: #FFD700;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ .radio-text {
    color: #000000;
    font-weight: 600;
}

.radio-text {
    font-weight: 500;
    color: #000000;
    transition: color 0.7s ease;
    font-size: .8438rem;
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: -0.0313rem;
}

.btn-primary {
    background-color: #000000;
    color: white;
}

.btn-primary:hover {
    background-color: #FFD700;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(12, 12, 12, 0.3);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #ed1919;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(71, 71, 71, 0.3);
}

/* Error Messages */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Success Message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 475;
}

/* Category Input Styles */
.category-input {
    border: 2px solid #000000 !important;
    background-color: #ffffff !important;
}

.category-input:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1) !important;
}

/* Category Buttons Grid */
.category-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    color: #000000;
    min-height: 80px;
}

.category-button:hover {
    background-color: #cbcbc63a;
    transform: translateY(-2px);
}

.category-button.selected {
    /* background-color: #10b981; */
    color: white;
    transform: translateY(-2px);
    
}

.category-icon {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.category-button.selected .category-icon {
    color: white;
}

/* Responsive Form */
@media (max-width: 768px) {
    .transaction-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .category-buttons-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .category-button {
        min-height: 70px;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}


