/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* ================================
   MODERN FORM PAGES SHARED STYLES
   ================================ */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Modern form pages base styles */
.modern-form-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 0;
}

.modern-form-page.edit-page {
    align-items: flex-start;
}

/* Modern form card styles */
.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 0 15px;
}

.form-container.edit-container {
    max-width: 800px;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.form-logo i {
    font-size: 36px;
    color: white;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Form group and input styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 18px;
    z-index: 2;
}

.form-card .form-control {
    width: 100% !important;
    padding-left: 50px !important;
    height: 50px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    background: white !important;
    box-sizing: border-box !important;
}

.form-card .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: none !important;
}

.form-card .form-control:focus + i {
    color: var(--primary-color) !important;
}

.form-card .form-control[disabled],
.form-card .form-control[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Validation styles */
.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    color: #721c24;
    font-size: 14px;
}

.field-validation {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--danger-color);
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

/* Button styles */
.btn-submit {
    width: 100%;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.btn-back {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Footer styles */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--secondary-color);
}

/* ================================
   EDIT PAGE SPECIFIC STYLES
   ================================ */

/* Radio and Checkbox styles */
.radio-group, .checkbox-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.radio-item, .checkbox-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.radio-item label, .checkbox-item label {
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .radio-item input[type="radio"], .checkbox-item input[type="checkbox"] {
        margin:0;
        margin-right: 8px;
    }

/* Upload area styles */
.upload-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.upload-hint {
    text-align: center;
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 10px;
}

/* Status styles */
.status-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.status-pending {
    color: var(--info-color);
    font-weight: 600;
}

.status-rejected {
    color: var(--danger-color);
    font-weight: 600;
}

.status-approved {
    color: var(--success-color);
    font-weight: 600;
}

.status-hint {
    font-size: 13px;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet and below */
@@media (max-width: 768px) {
    .form-container {
        padding: 0 10px;
    }

    .form-card {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .form-title {
        font-size: 20px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-card .form-control {
        height: 45px !important;
        font-size: 15px !important;
    }

    .btn-submit {
        height: 45px;
        font-size: 16px;
    }

    .radio-item, .checkbox-item {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

/* Mobile */
@@media (max-width: 480px) {
    .form-card {
        padding: 25px 15px;
    }

    .form-title {
        font-size: 18px;
    }

    .form-label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .form-card .form-control {
        padding-left: 45px !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    .input-group i {
        left: 12px;
        font-size: 16px;
    }

    .btn-submit {
        height: 40px;
        font-size: 15px;
    }

    .el-upload--picture-card {
        width: 100px !important;
        height: 100px !important;
    }

    .el-upload-list--picture-card .el-upload-list__item {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ================================
   ORIGINAL SITE STYLES
   ================================ */

/* Default body styles for non-modern pages */
body:not(.modern-form-page) {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Wrapping element */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

.el-select {
    display: block;
    width: 100%;
}

.hint {
    color: #888;
    font-size: 0.9em;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica", sans-serif;
    margin-left: 4px;
}