/*
District Awards Registration Plugin - Frontend Styles
*/

/* Reset and Base Styles */
.awards-registration-form *,
.awards-login-form *,
.award-registration-form *,
.member-profile-page *,
.password-reset-page *,
.thank-you-page * {
    box-sizing: border-box;
}

/* Form Container Styles */
.awards-registration-form,
.awards-login-form,
.award-registration-form,
.member-profile-page,
.password-reset-page,
.thank-you-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.login-required {
    max-width: 500px;
    margin: 30px auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.login-required h3 {
    color: #495057;
    margin-bottom: 15px;
}

.login-required p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Form Header */
.form-header,
.profile-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.form-header h2,
.profile-header h2 {
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p,
.profile-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

/* Profile Page Styles */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.profile-section h3 {
    color: #495057;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

/* Submissions List */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submission-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.submission-header h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.submission-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-under-review {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.submission-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    color: #495057;
    font-weight: 500;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group.focused label {
    color: #007cba;
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

label.required:after {
    content: " *";
    color: #dc3545;
    font-weight: 600;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background-color: #ffffff;
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="tel"]:disabled,
select:disabled,
textarea:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    padding-right: 40px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Upload Styles */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #007cba;
    background: #edf2f7;
}

.file-upload-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.file-upload-text {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 10px;
}

.file-upload-hint {
    color: #718096;
    font-size: 14px;
}

.file-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.file-input-group input[type="file"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.remove-file-input {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-file-input:hover {
    background: #c82333;
}

#add-file-input {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

#add-file-input:hover {
    background: #218838;
}

.file-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.file-preview-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 500;
    color: #495057;
}

.file-size {
    color: #6c757d;
    font-size: 14px;
}

/* Button Styles */
.btn-primary {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary:hover {
    background-color: #006396;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #007cba;
    border: 2px solid #007cba;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
}

.btn-outline:hover {
    background-color: #007cba;
    color: white;
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Button States */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-outline:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Messages */
.message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Awards Structure Display */
.awards-structure {
    margin: 30px 0;
}

.award-main-category {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.award-main-category h3 {
    background: #495057;
    color: white;
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 600;
}

.award-sub-category {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.award-sub-category:first-child {
    border-top: none;
}

.award-sub-category h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.award-sub-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-sub-category li {
    padding: 8px 0;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.award-sub-category li:last-child {
    border-bottom: none;
}

.award-sub-category li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-registration-form,
    .awards-login-form,
    .award-registration-form,
    .member-profile-page,
    .password-reset-page,
    .thank-you-page {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .submission-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-header h2,
    .profile-header h2 {
        font-size: 24px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .awards-registration-form,
    .awards-login-form,
    .award-registration-form,
    .member-profile-page,
    .password-reset-page,
    .thank-you-page {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .form-header h2,
    .profile-header h2 {
        font-size: 20px;
    }
    
    .award-main-category h3 {
        font-size: 18px;
        padding: 15px 20px;
    }
    
    .award-sub-category {
        padding: 15px 20px;
    }
}