/* Form Styles for Silat Championship Management
   Standardized form styling for consistent look across the application
*/

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, #0061f2 0%, #0044b3 100%);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Form controls */
.form-control, .form-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: var(--card-background);
    color: var(--text-color);
    width: 100%;
    height: 50px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    background-color: var(--card-background);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem 2rem;
}

@media (min-width: 992px) {
    .card-body {
        padding: 2rem 2.5rem;
    }
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,97,242,0.15);
    outline: none;
    background-color: var(--input-background);
}

/* Input groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-height: 50px;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.2rem;
    width: 80px;
    height: 50px;
    line-height: 50px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: var(--accent-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 0;
}

.input-group .form-control {
    border-radius: 0 0.25rem 0.25rem 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,97,242,0.15);
}

/* Icon styling in input groups */
.input-group-text i {
    font-size: 1rem;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* File input styling */
input[type="file"] {
    width: 100%;
    padding: 0.375rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 1rem;
    height: 40px;
}

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: var(--accent-color);
    color: white;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #0044b3;
}

/* Checkbox specific styling */
input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.35rem;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--card-background);
    transition: all 0.2s ease;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
}

/* Prestasi field specific */
.input-group:has(input[type="checkbox"]) {
    display: inline-flex;
    width: auto;
}

.form-group:has(input[type="checkbox"]) {
    text-align: left;
}

.form-group:has(input[type="checkbox"]) .input-group {
    width: 100%;
}

/* Form field spacing */
.form-group {
    margin-bottom: 0.35rem !important;
}

/* Form label styling */
.form-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    display: block;
    text-align: left;
    width: 100%;
    letter-spacing: 0.3px;
}

/* Button hover states */
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-light:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.hover-lift {
    transition: all 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.15)!important;
}

/* Card styling */
.card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.bg-light {
    background-color: #f8faff !important;
}

.card-title {
    color: var(--text-color);
    font-weight: 600;
}

/* List styling */
.list-unstyled li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

/* Text colors */
.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #28a745 !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .col-lg-4 {
        margin-top: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-background);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Focus outline */
*:focus {
    outline: none;
}

/* Placeholder styling */
::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}
