/* General Styles */
body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #4a6bff 0%, #2541b8 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Profile Dropdown */
.dropdown-menu {
    min-width: 250px;
}

/* File Preview Styles */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.file-preview-item {
    position: relative;
    width: 120px;
    min-height: 120px;
    height: auto;
    border: none;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.file-preview-item.file-error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.file-error-message {
    color: #dc3545;
    font-size: 11px;
    font-weight: bold;
    margin-top: 5px;
}

.file-preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.file-preview-item:hover img {
    transform: scale(1.1);
}

.file-preview-item .file-type {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    padding: 8px 5px 4px 5px;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.form-text {
    color: #718096;
    font-size: 0.875rem;
}

.form-select {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.15);
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a6bff 0%, #2541b8 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a5bef 0%, #1531a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-info {
    background-color: #17a2b8;
    border: none;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #2d3748;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #edf2f7;
    padding: 1.25rem 1.5rem;
}

.close {
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.close:hover {
    opacity: 1;
}

/* Search Bar Styles */
.search-bar {
    max-width: 300px;
}

/* Testimonials Styles */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.testimonial-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f5f7fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}

.testimonial-quote {
    font-style: italic;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1051;
}

.image-modal-close:hover {
    color: #ccc;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translate(-50%, -50%) scale(0.9);}
    to {opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-upload-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 2.5rem;
    margin: 0;
    opacity: 0;
}

.file-upload-text {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 2.5rem;
    padding: .5rem 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-nav {
        margin-bottom: 10px;
    }
    
    .search-bar {
        margin-top: 10px;
        max-width: 100%;
    }
}
