/**
 * CSS styles for forms generated by yiic.
 *
 * The styles can be applied to the following form structure:
 *
 * <div class="form">
 *     <div class="row">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 *     <div class="row">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 *     <div class="row buttons">
 *         <label for="inputid">xyz</label>
 *         <input name="inputid" id="inputid" type="text" />
 *         <p class="hint">hint text</p>
 *     </div>
 * </div>
 *
 * The above code will render the labels and input fields in separate lines.
 * In order to render them in the same line, please use the "wide" form as follows,
 *
 * <div class="wide form">
 *     ......
 * </div>
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2010 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

div.form input,
div.form textarea,
div.form select
{
	margin: 0.2em 0 0.5em 0;
}

div.form fieldset
{
	border: 1px solid #DDD;
	padding: 10px;
	margin: 0 0 10px 0;
	border-radius: 7px;
    -moz-border-radius: 7px;
}

div.form label
{
	font-weight: bold;
	font-size: 0.9em;
	display: block;
}

div.form .row
{
	margin: 5px 0;
}

div.form .hint
{
	margin: 0;
	padding: 0;
	color: #999;
}

div.form .note
{
	font-style: italic;
}

div.form span.required
{
	color: red;
}

div.form div.error label:first-child,
div.form label.error,
div.form span.error
{
	color: #C00;
}

div.form div.error input,
div.form div.error textarea,
div.form div.error select,
div.form input.error,
div.form textarea.error,
div.form select.error
{
	background: #FEE;
	border-color: #C00;
}

div.form div.success input,
div.form div.success textarea,
div.form div.success select,
div.form input.success,
div.form textarea.success,
div.form select.success
{
	background: #E6EFC2;
	border-color: #C6D880;
}

div.form div.success label
{
	color: inherit;
}

div.form .errorSummary
{
	border: 2px solid #C00;
	padding: 7px 7px 12px 7px;
	margin: 0 0 20px 0;
	background: #FEE;
	font-size: 0.9em;
}

div.form .errorMessage
{
	color: red;
	font-size: 0.9em;
}

div.form .errorSummary p
{
	margin: 0;
	padding: 5px;
}

div.form .errorSummary ul
{
	margin: 0;
	padding: 0 0 0 20px;
}

div.wide.form label
{
	float: left;
	margin-right: 10px;
	position: relative;
	text-align: right;
	width: 100px;
}

div.wide.form .row
{
	clear: left;
}

div.wide.form .buttons, div.wide.form .hint, div.wide.form .errorMessage
{
	clear: left;
	padding-left: 110px;
}

/* Modern Form Styles for Object Form and Similar Forms */
.form-section {
    margin-bottom: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    margin-right: 8px;
    color: #3498db;
}

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

.control-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-control {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.has-error .form-control {
    border-color: #e74c3c;
}

.has-error .help-block {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.help-block {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 0;
}

.alert {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

/* Panel body padding */
.panel-body-padded {
    padding: 30px 40px 30px 40px;
}

/* Form actions */
.form-actions {
    margin-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Dropdown full width */
.dropdown-full-width {
    width: 100%;
}

.dropdown-full-width .modern-dropdown-btn {
    width: 100%;
    justify-content: space-between;
}

.dropdown-menu-full-width {
    width: 100%;
}

.dropdown-menu-scrollable {
    max-height: 300px;
    overflow-y: auto;
}

/* Text muted */
.text-muted {
    color: #999;
}

/* Modern License Plate Form Styles */
#license-plate-form .form-group {
    margin-bottom: 25px;
}

#license-plate-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#license-plate-form .form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#license-plate-form .form-control:focus {
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#license-plate-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

#license-plate-form .modern-table {
    margin-top: 10px;
}

#license-plate-form .modern-table td {
    vertical-align: middle;
    padding: 12px;
}

#license-plate-form .modern-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#license-plate-form .has-error .form-control {
    border-color: #dc3545;
}

#license-plate-form .has-error .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Modern buttons */
.btn-modern {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    margin-right: 10px;
}

.btn-modern-success {
    background-color: #10b981;
    color: white;
}

.btn-modern-success:hover {
    background-color: #059669;
    color: white;
    text-decoration: none;
}

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

.btn-modern-secondary:hover {
    background-color: #4b5563;
    color: white;
    text-decoration: none;
}
