/* Reusable UI Components */

/* Input Component */
.ui-input {
    width: 285px;
    max-width: 90%;
    padding: 3px 10px 3px 4px;
    font-size: 12px;
    border: 1px solid #f0f0f0;
    border-top: 1px solid #c6c6c6;
    border-radius: 2px;
    font-family: Tahoma, Arial, sans-serif;
    background-color: #FFFFFF;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1), inset -1px -1px 0px rgba(255,255,255,0.8);
}

.ui-input:focus {
    outline: none;
    border: 1px solid #cbd3d4;
    border-top: 1px solid #7293a8;
    border-radius: 1px;
}

/* Button Component */
.ui-button {
    padding: 2px 6px;
    font-size: 11px;
    font-family: Tahoma, Arial, sans-serif;
    background: linear-gradient(to bottom, #f0eff4 0%, #cfcfcf 100%);
    border: 1px solid #7e7e7e;
    border-radius: 3px;
    cursor: pointer;
    color: #333333;
    font-weight: 500;
    box-shadow: 0 0 0 1px #eeedf0 inset, 1px 1px 0px rgba(255,255,255,0.8) inset, -1px -1px 1px rgba(0,0,0,0.1) inset, 0px 1px 2px rgba(0,0,0,0.1);
}

.ui-button:hover {
    background: linear-gradient(to bottom, #dff4ff 0%, #9bc4df 100%);
    border: 1px solid #6a92b0;
    box-shadow: 0 0 0 1px #aad4e8 inset, 1px 1px 0px rgba(255,255,255,0.8) inset, -1px -1px 1px rgba(0,0,0,0.1) inset, 0px 1px 2px rgba(0,0,0,0.1);
}

.ui-button:active {
    background: linear-gradient(to bottom, #daeffd 0%, #6eaacf 100%);
    border: 1px solid #000000;
    border-top: 2px solid;
    border-image: repeating-linear-gradient(90deg, #000000 0px, #000000 2px, transparent 2px, transparent 4px) 1;
    box-shadow: 
        2px 2px 4px rgba(0,0,0,0.3) inset, 
        -2px -2px 3px rgba(255,255,255,0.3) inset,
        1px 1px 1px rgba(0,0,0,0.4) inset,
        -1px -1px 1px rgba(255,255,255,0.6) inset;
}

.ui-button:disabled {
    background: #ffffff;
    color: #888888;
    border: 1px solid #888888;
    cursor: not-allowed;
    box-shadow: none;
}

/* Container Components */
.ui-input-container {
    margin-bottom: 2px;
    margin-top: 10px;
}

.ui-button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Responsive adjustments for UI components */
@media (max-width: 600px) {
    .ui-button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .ui-button {
        width: 150px;
    }
    
    .ui-input {
        width: 100%;
    }
}