🎯 Common CSS Properties for All Inputs
/* Basic Styling */
input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
width: 100%;
box-sizing: border-box;
}
/* Focus State */
input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
/* Hover Effect */
input:hover {
border-color: #999;
}
/* Disabled State */
input:disabled {
background-color: #f5f5f5;
cursor: not-allowed;
}
/* Placeholder Styling */
input::placeholder {
color: #999;
font-style: italic;
}