/* Profile Container - Full Width */
.ci-otology-profile-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ci-otology-profile-container .row {
    margin: 0 !important;
}

.ci-otology-profile-container .container-fluid {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Profile Sidebar Styles */
.profile-sidebar {
    position: sticky;
    top: 20px;
}

.profile-sidebar .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-sidebar .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.profile-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.profile-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.profile-sidebar .nav-link i {
    font-size: 1.1rem;
}

/* Profile Page Styles */
.profile-page-content .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-page-content hr {
    margin: 1rem 0;
}

/* Case Cards Styles */
.case-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.case-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.case-card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.case-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.case-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-actions {
    display: flex;
    gap: 0.25rem;
    position: relative;
    z-index: 10;
}

.case-actions .btn {
    padding: 0.25rem 0.5rem;
    position: relative;
    z-index: 11;
}

/* Form Styles */
.create-case-page-content .card,
.edit-case-page-content .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Attachment Styles - Drag and Drop Zone */
.attachments-dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.attachments-dropzone:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.attachments-dropzone.drag-over {
    border-color: #0d6efd;
    background-color: #cfe2ff;
    border-style: solid;
}

/* Make dropzone fully clickable */
.attachments-dropzone {
    position: relative;
}

.dropzone-content {
    /* Content is clickable, but clicks will bubble to dropzone */
    position: relative;
    z-index: 1;
}

.attachments-dropzone .btn {
    position: relative;
    z-index: 2;
}

/* Attachments List */
.attachments-list {
    margin-top: 1rem;
}

.attachment-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.attachment-file-item:hover {
    background-color: #e9ecef;
}

.attachment-file-item.uploading {
    opacity: 0.7;
}

.attachment-file-item.uploaded {
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.attachment-file-item.error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.attachment-file-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.attachment-file-icon.image {
    color: #0d6efd;
}

.attachment-file-icon.video {
    color: #dc3545;
}

.attachment-file-icon.pdf {
    color: #dc3545;
}

.attachment-file-info {
    flex: 1;
    min-width: 0;
}

.attachment-file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.attachment-file-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.attachment-file-progress {
    margin-top: 0.5rem;
    height: 6px;
}

.attachment-file-progress .progress-bar {
    transition: width 0.3s ease;
}

.attachment-file-remove {
    margin-left: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
    color: #dc3545;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.attachment-file-remove:hover {
    transform: scale(1.2);
    color: #bb2d3b;
}

/* Reference Links Styles */
.reference-link-item {
    display: flex;
    align-items: center;
}

.reference-link-item:first-child .remove-link-btn {
    display: none !important;
}

/* Content Pages */
.content-page {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .case-card {
        margin-bottom: 1rem;
    }
}
