/* Form Styles for input.html - Version 1.1 - Added character counter styles */

/* Hide brand text to match index.html */
.navbar-brand .brand-text {
    display: none !important;
}

/* Form Container Styles */
.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #a5c422;
}

.form-header h1 {
    color: #3A4523;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.form-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.form-instructions h3 {
    color: #a5c422;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3A4523;
    font-size: 1.1em;
}

.required {
    color: #d32f2f;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dbe3c9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: #a5c422;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(165, 196, 34, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.character-count {
    text-align: right;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.character-count.warning {
    color: #ff9800;
}

.character-count.danger {
    color: #d32f2f;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-submit {
    background: linear-gradient(135deg, #a5c422, #8fb01a);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(165, 196, 34, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(165, 196, 34, 0.4);
    background: linear-gradient(135deg, #8fb01a, #7a9618);
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Success Popup Styles */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.success-popup.show {
    display: flex;
}

.success-popup-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-popup h2 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 2em;
}

.success-popup p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.5;
}

.success-popup .btn-close {
    background: linear-gradient(135deg, #a5c422, #8fb01a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-popup .btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 196, 34, 0.4);
    background: linear-gradient(135deg, #8fb01a, #7a9618);
}

.success-icon {
    font-size: 4em;
    color: #28a745;
    margin-bottom: 20px;
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Staff Photo Upload Styles */
.staff-photo-entry {
    border: 2px dashed #dbe3c9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
}

.staff-photo-entry:hover {
    border-color: #a5c422;
    background: #f8f9fa;
}

.staff-photo-entry.has-image {
    border-style: solid;
    border-color: #a5c422;
    background: white;
}

.staff-photo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.staff-photo-title {
    font-weight: 600;
    color: #3A4523;
    font-size: 1.1em;
}

.remove-staff-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.remove-staff-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.staff-photo-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.staff-photo-upload {
    flex: 0 0 200px;
}

.staff-photo-info {
    flex: 1;
}

.photo-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.photo-upload-area:hover {
    border-color: #a5c422;
    background: #f8f9fa;
}

.photo-upload-area.has-image {
    border-style: solid;
    border-color: #a5c422;
    padding: 10px;
}

.photo-preview {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    object-fit: cover;
}

.photo-upload-text {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.photo-file-input {
    display: none;
}

.staff-info-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-add-staff {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    display: block;
    margin: 0 auto;
}

.btn-add-staff:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

/* Operating Hours Styles */
.operating-hours-container {
    border: 2px solid #dbe3c9;
    border-radius: 10px;
    padding: 25px;
    background: #fafafa;
    overflow: hidden;
}

.timezone-selection {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.timezone-selection label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #3A4523;
    font-size: 1.1em;
}

.timezone-selection select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dbe3c9;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timezone-selection select:focus {
    border-color: #a5c422;
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 196, 34, 0.1);
}

.daily-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    min-height: 60px;
}

.day-label {
    flex: 0 0 100px;
    font-weight: 600;
    color: #3A4523;
    font-size: 0.95em;
}

.day-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.closed-checkbox {
    flex: 0 0 70px;
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

.closed-checkbox input {
    margin-right: 6px;
}

.time-selectors {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.time-selectors.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.hour-select, .minute-select, .ampm-select {
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85em;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    text-align: center;
}

.hour-select:focus, .minute-select:focus, .ampm-select:focus {
    border-color: #a5c422;
    outline: none;
}

.hour-select {
    width: 55px;
    min-width: 55px;
}

.minute-select {
    width: 45px;
    min-width: 45px;
}

.ampm-select {
    width: 50px;
    min-width: 50px;
}

.to-label {
    font-size: 0.85em;
    color: #666;
    margin: 0 4px;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.time-group span {
    font-size: 0.9em;
    color: #666;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .form-container {
        margin: 20px 10px;
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-header h1 {
        font-size: 1.8em;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    
    .staff-photo-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .staff-photo-upload {
        flex: none;
        width: 100%;
    }
    
    .photo-upload-area {
        min-height: 120px;
    }
    
    .staff-photo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Operating Hours Mobile Styles */
    .day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .day-label {
        flex: none;
        width: 100%;
        font-size: 1.1em;
    }
    
    .day-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .closed-checkbox {
        flex: none;
        width: auto;
    }
    
    .time-selectors {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .time-group {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .to-label {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        font-weight: 600;
    }
    
    .hour-select, .minute-select, .ampm-select {
        min-width: 70px;
        flex: 0 0 auto;
    }
}
