/* Registration Page Styles */

/* Main Content Styles */
main {
    min-height: 80vh;
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--one);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 242, 0.25);
}


/* Tab Styles */
.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
    border: 1px solid transparent;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: var(--one);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 500;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background-color: var(--one);
    color: #fff;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Image Upload Preview */
#imagePreview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Upload Area Styles */
.upload-container {
    position: relative;
}

.upload-area {
    width:150px;
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.upload-area:hover {
    border-color: var(--one);
    background-color: #f0f9ff;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 32px;
    color: #ccc;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: var(--one);
}

.upload-text {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Image Preview Container */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-wrapper .btn-danger {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.preview-wrapper:hover .btn-danger {
    opacity: 1;
}

/* Responsive Upload Area */
@media (max-width: 768px) {
  .upload-area {
    width: 120px;
  }
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .preview-wrapper {
        width: 120px;
        height: 120px;
    }
}

/* Image Preview Overlay */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-preview {
    position: absolute;
    top: -30px;
    right: -30px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-preview:hover {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Form Group Spacing */
.mb-4 {
    margin-bottom: 1.5rem;
}

/* Heading Styles */
h2 {
    color: var(--one);
    font-weight: 600;
}

h3.h5 {
    color: var(--dark-color);
    font-weight: 500;
}

/* Radio Button Styles */
.form-check-input:checked {
    background-color: var(--one);
    border-color: var(--one);
}

/* File Input Styles */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Validation Styles */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for conditional fields */
.d-none {
    display: none !important;
}

/* Smooth transitions */
.form-group {
    transition: all 0.3s ease;
}

/* Focus styles for form elements */
.form-select:focus {
    border-color: var(--one);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 242, 0.25);
}

/* Button focus styles */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 242, 0.5);
}

/* Card header styles */
.card-header {
    background-color: var(--three);
    border-bottom: 1px solid #e9ecef;
}