/* SeekCrave Styling - Complete Responsive Design */

:root {
    --primary-color: #6f42c1;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Navigation Responsive */
.navbar {
    padding: 0.5rem 0;
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
}

.navbar-nav {
    flex-wrap: wrap;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar-toggler {
        margin-right: 10px;
    }

    .navbar-profile-image,
    .navbar-profile-placeholder {
        width: 32px;
        height: 32px;
    }

    .navbar-profile-placeholder {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar-profile-image,
    .navbar-profile-placeholder {
        width: 30px;
        height: 30px;
    }

    .navbar-profile-placeholder {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .navbar-profile-image,
    .navbar-profile-placeholder {
        width: 28px;
        height: 28px;
    }

    .navbar-profile-placeholder {
        font-size: 11px;
    }
}

/* Container Responsive */
.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* Hero Banner Responsive */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: clamp(300px, 50vh, 500px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

.banner-container {
    width: 100vw;
    min-height: clamp(300px, 50vh, 500px);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.banner-container img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    max-width: none;
    min-width: 100vw;
    min-height: 100%;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: clamp(20px, 5vw, 40px);
    left: clamp(20px, 5vw, 40px);
    right: clamp(20px, 5vw, 40px);
    background: rgba(255, 255, 255, 0.95);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.banner-overlay h1 {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 600;
}

.banner-overlay p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 1.2rem;
    color: #666;
}

/* Card Responsive */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.card:hover {
    transform: translateY(-2px);
}

.card-body {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Button Responsive */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.85rem, 2vw, 1rem);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5a359a;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: black;
}

.btn-sm {
    padding: clamp(0.25rem, 1.5vw, 0.375rem) clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
}

/* Form Responsive */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    padding: clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    width: 100%;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Grid Systems Responsive */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 3vw, 20px);
    padding: 20px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(10px, 2vw, 15px);
    margin: 20px 0;
}

/* Video Container Responsive */
.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/16;
    max-height: 500px;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: clamp(10px, 3vw, 20px);
    color: white;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.video-player video {
    width: 100%;
    border-radius: 10px;
}

/* Photo Items Responsive */
.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Cards Responsive */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #8b5fbf);
    color: white;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 25px);
    text-align: center;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Table Responsive */
.table-responsive {
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    min-width: 600px;
}

.table th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.table td {
    border: none;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

/* Admin Sidebar Responsive */
.admin-sidebar {
    background: var(--dark-color);
    min-height: calc(100vh - 76px);
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: clamp(8px, 2vw, 10px) clamp(15px, 3vw, 20px);
    border-radius: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Modal Responsive */
.modal-content {
    border-radius: 15px;
    margin: clamp(10px, 3vw, 20px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    border-bottom: 1px solid #eee;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
}

.modal-body {
    padding: clamp(15px, 3vw, 20px);
}

.modal-footer {
    border-top: 1px solid #eee;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
}

/* Audition Card Responsive */
.audition-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.audition-card:hover {
    transform: translateY(-2px);
}

/* Director Card Responsive */
.director-card {
    transition: transform 0.3s ease;
    padding: clamp(10px, 3vw, 20px);
    text-align: center;
}

.director-card:hover {
    transform: scale(1.02);
}

.director-card img,
.director-card div {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    margin: 0 auto 10px;
}

/* Professional Director Card Styles */
.director-card-professional {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    cursor: pointer;
}

.director-card-professional:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.director-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.director-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.95);
}

.director-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #8b5fbf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    transition: all 0.4s ease;
}

.director-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    opacity: 0;
    transition: all 0.4s ease;
}

.director-card-professional:hover .director-image-overlay {
    opacity: 1;
}

.director-card-professional:hover .director-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.director-card-professional:hover .director-image-placeholder {
    transform: scale(1.08);
}

.director-role-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.director-details {
    padding: 20px;
    text-align: center;
    background: white;
}

.director-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.director-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: capitalize;
}

/* Responsive adjustments for professional director cards */
@media (max-width: 991.98px) {
    .director-image-container {
        height: 260px;
    }

    .director-details {
        padding: 18px;
    }

    .director-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .director-card-professional {
        margin-bottom: 25px;
    }

    .director-image-container {
        height: 240px;
    }

    .director-details {
        padding: 16px;
    }

    .director-name {
        font-size: 1.05rem;
    }

    .director-title {
        font-size: 0.85rem;
    }

    .director-role-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .director-image-placeholder {
        font-size: 40px;
    }
}

@media (max-width: 575.98px) {
    .director-card-professional {
        margin-bottom: 20px;
    }

    .director-image-container {
        height: 220px;
    }

    .director-details {
        padding: 14px;
    }

    .director-name {
        font-size: 1rem;
    }

    .director-title {
        font-size: 0.8rem;
    }

    .director-image-placeholder {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .director-image-container {
        height: 200px;
    }

    .director-details {
        padding: 12px;
    }

    .director-name {
        font-size: 0.95rem;
    }

    .director-title {
        font-size: 0.75rem;
    }

    .director-image-placeholder {
        font-size: 32px;
    }
}

/* Homepage Audition Cards */
.audition-card-home {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.audition-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.audition-banner-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.audition-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.audition-card-home:hover .audition-banner-img {
    transform: scale(1.05);
}

.audition-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.audition-card-home .card-body {
    padding: 15px;
}

.audition-card-home .card-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for homepage audition cards */
@media (max-width: 991.98px) {
    .audition-banner-container {
        height: 160px;
    }

    .audition-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .audition-banner-container {
        height: 150px;
    }

    .audition-card-home .card-body {
        padding: 12px;
    }

    .audition-card-home .card-footer {
        padding: 8px 12px;
    }
}

@media (max-width: 575.98px) {
    .audition-banner-container {
        height: 140px;
    }

    .audition-title {
        font-size: 0.9rem;
    }
}

/* Instagram-style Profile Gallery */
.profile-tabs {
    border-top: 1px solid #dbdbdb;
    margin-bottom: 0;
}

.tab-buttons {
    display: flex;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e8e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-top: 1px solid transparent;
    margin-top: -1px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #262626;
    border-top-color: #262626;
}

.tab-btn i {
    font-size: 16px;
}

.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.active {
    display: block;
}

.instagram-gallery-container {
    width: 100%;
    margin-top: 0;
    padding: 0;
}

.instagram-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 100%;
    margin: 0;
}

/* Options menu styles */
.item-options-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.options-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.2s;
}

.options-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.options-dropdown.show {
    display: block;
}

.options-dropdown button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #262626;
}

.options-dropdown button:hover {
    background-color: #f5f5f5;
}

.options-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.options-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.options-dropdown button i {
    color: #ed4956;
}

.instagram-grid-item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    overflow: hidden;
    background: #f8f9fa;
}

.instagram-grid-item img,
.instagram-grid-item .instagram-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.instagram-grid-item:hover img,
.instagram-grid-item:hover .instagram-video-thumbnail {
    transform: scale(1.05);
}

.instagram-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.instagram-grid-item:hover .instagram-item-overlay {
    opacity: 1;
}

.instagram-overlay-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.instagram-overlay-content i {
    font-size: 18px;
}

.instagram-video-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 14px;
    z-index: 2;
}

.instagram-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0;
}

.instagram-video-item {
    position: relative;
    aspect-ratio: 4/5;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.video-overlay-stats {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.instagram-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

.empty-camera-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #8e8e8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-camera-icon i {
    font-size: 36px;
}

.instagram-empty-state h3 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 16px;
    color: #262626;
}

.instagram-empty-state p {
    font-size: 16px;
    color: #8e8e8e;
}

/* Instagram-style Modal */
.instagram-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.instagram-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.instagram-modal-container {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: min(98vw, 1400px);
    max-height: min(98vh, 900px);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.instagram-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #dbdbdb;
    background: white;
    position: relative;
    z-index: 10;
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #262626;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-right: 8px;
}

.fullscreen-btn:hover {
    background: #f8f9fa;
}

.modal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.modal-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e8e;
}

.modal-username {
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.instagram-modal-close {
    background: none;
    border: none;
    color: #262626;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.instagram-modal-close:hover {
    background: #f8f9fa;
}

.instagram-modal-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.instagram-media-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.instagram-media-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    cursor: zoom-in;
    display: block;
}

.instagram-media-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.instagram-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.instagram-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.instagram-prev {
    left: 16px;
}

.instagram-next {
    right: 16px;
}

.instagram-sidebar {
    width: min(335px, 40vw);
    min-width: 280px;
    background: white;
    border-left: 1px solid #dbdbdb;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow-y: auto;
}

.instagram-actions {
    padding: 12px 16px;
    border-bottom: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.1s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn i {
    font-size: 24px;
    color: #262626;
}

.like-btn i.fas {
    color: #ed4956;
}

.instagram-info {
    padding: 16px;
}

.post-stats {
    margin-bottom: 8px;
}

.likes-count {
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.post-caption {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.username {
    font-weight: 600;
    color: #262626;
    margin-right: 4px;
}

.caption-text {
    color: #262626;
}

.post-time {
    font-size: 12px;
    color: #8e8e8e;
    text-transform: uppercase;
}

/* Responsive Instagram Gallery */
@media (max-width: 768px) {
    .instagram-modal {
        padding: 5px;
    }

    .instagram-modal-container {
        flex-direction: column;
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .instagram-sidebar {
        width: 100%;
        max-height: 120px;
        overflow-y: auto;
        min-width: auto;
    }

    .instagram-media-container {
        min-height: 300px;
        max-height: 75vh;
    }

    .instagram-media-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .instagram-media-container video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 10px;
    }

    .instagram-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .instagram-prev {
        left: 8px;
    }

    .instagram-next {
        right: 8px;
    }
}

@media (max-width: 575px) {
    .instagram-main-grid,
    .instagram-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }

    .tab-btn span {
        display: none;
    }

    .tab-btn {
        padding: 12px;
    }

    .instagram-modal {
        padding: 5px;
    }

    .instagram-modal-container {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    .instagram-media-container {
        min-height: 200px;
        max-height: 50vh;
    }

    .instagram-sidebar {
        max-height: 120px;
    }

    .empty-camera-icon {
        width: 60px;
        height: 60px;
    }

    .empty-camera-icon i {
        font-size: 24px;
    }

    .instagram-empty-state h3 {
        font-size: 22px;
    }

    .instagram-empty-state p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .instagram-modal {
        padding: 2px;
    }

    .instagram-modal-container {
        border-radius: 4px;
    }

    .instagram-media-container {
        min-height: 180px;
        max-height: 45vh;
    }

    .instagram-sidebar {
        max-height: 100px;
    }

    .instagram-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .action-btn i {
        font-size: 20px;
    }

    .modal-user-avatar {
        width: 28px;
        height: 28px;
    }

    .modal-username {
        font-size: 13px;
    }

    .instagram-modal-header {
        padding: 12px 16px;
    }

    .instagram-info {
        padding: 12px;
    }
}

/* Upload Area Responsive */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: clamp(20px, 5vw, 40px);
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

/* Profile Completion Responsive */
.profile-completion {
    background: var(--light-color);
    border-radius: 10px;
    padding: clamp(15px, 4vw, 20px);
    margin-bottom: 30px;
}

.progress {
    height: clamp(8px, 2vw, 10px);
    border-radius: 5px;
}

/* Application Card Responsive */
.application-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 1rem;
}

.application-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.actor-header {
    display: flex;
    align-items: center;
    padding: clamp(10px, 3vw, 15px);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.actor-photo,
.actor-photo-placeholder {
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.actor-info {
    flex-grow: 1;
    min-width: 0;
}

.actor-name {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Video Container in Applications */
.video-container {
    position: relative;
    height: clamp(200px, 40vw, 300px);
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Control Buttons Responsive */
.control-buttons {
    position: absolute;
    bottom: clamp(10px, 3vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
    justify-content: center;
}

.control-buttons button {
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    border-radius: 6px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Actor Video Info */
.actor-video-info {
    padding: clamp(10px, 3vw, 15px);
    background: white;
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
}

.actor-video-info img {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.actor-video-info h6 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
}

.actor-video-info small {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #666;
}

/* Selected Actor Card */
.selected-actor-card {
    border: 2px solid #28a745;
    border-radius: 12px;
    background: #f8fff9;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1rem;
}

.selected-actor-card:hover {
    box-shadow: 0 4px 12px rgba(40,167,69,0.2);
}

.selected-actor-card .actor-header {
    background: #e8f5e8;
    border-bottom: 1px solid #28a745;
}

.selected-actor-card .actor-header:hover {
    background: #d4edda;
}

.video-section {
    background: #f8f9fa;
    padding: clamp(10px, 3vw, 15px);
    border-radius: 8px;
    margin-bottom: 15px;
}

.audition-video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

/* Footer Responsive */
footer {
    margin-top: auto;
    padding: clamp(20px, 4vw, 40px) 0;
}

footer h5 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

footer p {
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Responsive Breakpoints */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    /* Fix large gap in mobile dashboard */
    main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .container-fluid {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .py-4, .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Specific fix for director dashboard mobile gap */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .container-fluid.py-4 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

    /* Remove any extra spacing from rows and columns */
    .row {
        margin-top: 0 !important;
    }

    .col-md-3, .col-lg-2, .col-md-9, .col-lg-10 {
        padding-top: 0 !important;
    }

    /* Ensure sidebar has minimal top spacing */
    .admin-sidebar {
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
    }

    /* Fix for director dashboard mobile gap */
    .col-md-9.col-lg-10 {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
    }

    /* Remove excessive spacing from main content area */
    main.container-fluid {
        padding-top: 0.5rem !important;
        margin-top: 0 !important;
    }

    /* Complete mobile gap fix for all admin/director pages */
    body.admin-page,
    body.director-page {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .container-fluid.py-4,
    .container-fluid.py-5 {
        padding-top: 0 !important;
        padding-bottom: 1rem !important;
    }

    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .row.g-3,
    .row.g-4 {
        margin-top: 0 !important;
    }

    .col-12,
    .col-md-9,
    .col-lg-10 {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove all top margins and paddings from headers */
    h1, h2, h3, h4, h5, h6 {
        margin-top: 0 !important;
    }

    .page-header,
    .dashboard-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Navbar adjustments for mobile */
    .navbar {
        margin-bottom: 0 !important;
    }

    /* Ensure no gaps in admin layout */
    .admin-layout,
    .director-layout {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Specific mobile fix for director dashboard page */
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove all top spacing from director dashboard */
    .py-3, .py-4, .py-5 {
        padding-top: 0 !important;
    }

    .mt-1, .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0 !important;
    }

    .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.5rem !important;
    }

    /* Target any bootstrap spacing classes */
    .p-1, .p-2, .p-3, .p-4, .p-5 {
        padding: 0.5rem !important;
    }

    /* Remove spacing from main dashboard container */
    .container-fluid.py-3,
    .container-fluid.py-4,
    .container-fluid.py-5 {
        padding: 0.25rem !important;
        margin: 0 !important;
    }

    /* Remove any flex gaps */
    .d-flex {
        gap: 0 !important;
    }

    /* Remove any card margins at top */
    .card:first-child {
        margin-top: 0 !important;
    }

    /* Comprehensive fix for selected artists page mobile gap */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove all spacing from main containers */
    .container-fluid {
        padding: 0.25rem !important;
        margin: 0 !important;
    }

    /* Target the specific page layout */
    .container-fluid.py-4 {
        padding: 0.25rem !important;
    }

    /* Remove row margins */
    .row {
        margin: 0 !important;
    }

    /* Remove column padding */
    .col-md-3, .col-lg-2, .col-md-9, .col-lg-10 {
        padding: 0.25rem !important;
        margin: 0 !important;
    }

    /* Fix sidebar spacing */
    .admin-sidebar {
        margin: 0 !important;
        padding: 0.5rem !important;
    }

    /* Remove header spacing */
    .d-flex.justify-content-between.align-items-center {
        margin: 0 !important;
        padding: 0.5rem 0 !important;
    }

    /* Remove card spacing */
    .card.mb-4 {
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

    /* Remove all Bootstrap spacing utilities on mobile */
    .py-1, .py-2, .py-3, .py-4, .py-5 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .my-1, .my-2, .my-3, .my-4, .my-5 {
        margin-top: 0 !important;
        margin-bottom: 0.25rem !important;
    }

    .mt-1, .mt-2, .mt-3, .mt-4, .mt-5 {
        margin-top: 0 !important;
    }

    .mb-1, .mb-2, .mb-3, .mb-4, .mb-5 {
        margin-bottom: 0.25rem !important;
    }

    /* Remove padding from containers */
    .p-1, .p-2, .p-3, .p-4, .p-5 {
        padding: 0.25rem !important;
    }

    /* Target specific elements in selected artists page */
    h2 {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0 !important;
    }

    /* Remove gaps from flex containers */
    .d-flex {
        gap: 0 !important;
    }

    .hero-banner {
        min-height: clamp(250px, 40vh, 400px);
        width: 100vw;
        position: relative;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        left: 0;
        right: 0;
    }

    .banner-container {
        min-height: clamp(250px, 40vh, 400px);
        width: 100vw;
        position: relative;
        margin: 0;
        padding: 0;
    }

    .banner-container img {
        width: 100vw;
        height: 100%;
        min-height: clamp(250px, 40vh, 400px);
        object-fit: cover;
        object-position: center;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        min-width: 100vw;
    }

    .banner-overlay {
        padding: 1rem;
        width: 90%;
        margin: 0 auto;
        position: absolute;
        bottom: 20px;
        left: 5%;
        right: 5%;
        background: transparent !important;
        text-align: center;
        z-index: 3;
    }

    .banner-overlay .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .banner-overlay {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .admin-sidebar {
        padding: 10px 0;
    }

    .admin-sidebar .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .control-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .control-buttons button {
        width: auto;
        min-width: 80px;
    }

    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .actor-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .actor-photo,
    .actor-photo-placeholder {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .video-container {
        height: 250px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .control-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .btn {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: white;
    }

    .form-control {
        background-color: #4a5568;
        border-color: #718096;
        color: white;
    }

    .table {
        color: white;
    }

    .table th {
        background-color: #4a5568;
    }
}

/* Loading States */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .admin-sidebar,
    .btn,
    footer {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Full Page Image Gallery */
.image-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-counter {
    font-size: 18px;
    font-weight: 500;
}

.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.gallery-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: white;
}

/* Mobile Gallery Styles */
@media (max-width: 768px) {
    .gallery-header {
        padding: 15px 20px;
    }

    .gallery-counter {
        font-size: 16px;
    }

    .gallery-content {
        padding: 10px;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    .gallery-footer {
        padding: 15px 20px;
    }

    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }

    .gallery-thumbnails {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-header {
        padding: 10px 15px;
    }

    .gallery-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .gallery-counter {
        font-size: 14px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-thumbnail {
        width: 45px;
        height: 45px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a359a;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Visible for Better Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/*Navbar Profile Styles */
.profile-nav-link {
    padding: 0.25rem 0.5rem !important;
}

.navbar-profile-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.navbar-profile-image:hover {
    border-color: #0056b3;
    transform: scale(1.05);
}

.navbar-profile-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.navbar-profile-placeholder:hover {
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Instagram-style Profile Styles */
.profile-header-card {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 40px);
    margin-bottom: 30px;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
}

.profile-photo-large {
    width: clamp(120px, 20vw, 150px);
    height: clamp(120px, 20vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbdbdb;
}

.profile-photo-placeholder {
    width: clamp(120px, 20vw, 150px);
    height: clamp(120px, 20vw, 150px);
    border-radius: 50%;
    background: #f8f9fa;
    border: 3px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.photo-upload-overlay {
    margin-top: 15px;
}

.upload-label {
    background: #0095f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.upload-label:hover {
    background: #1877f2;
    color: white;
}

.profile-username {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 300;
    color: #262626;
}

.profile-status {
    font-size: 14px;
    color: #8e8e8e;
}

.profile-stats {
    display: flex;
    gap: clamp(20px, 5vw, 40px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 600;
    color: #262626;
}

.stat-label {
    font-size: 14px;
    color: #8e8e8e;
}

.profile-bio {
    color: #262626;
    font-size: 14px;
    line-height: 1.4;
}

.profile-tabs {
    border-top: 1px solid #dbdbdb;
    margin-bottom: 0;
}

.tab-buttons {
    display: flex;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e8e8e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-top: 1px solid transparent;
    margin-top: -1px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #262626;
    border-top-color: #262626;
}

.tab-btn i {
    font-size: 16px;
}

.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.active {
    display: block;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.instagram-upload-btn {
    background: #f8f9fa;
    border: 2px dashed #dbdbdb;
    border-radius: 12px;
    padding: clamp(20px, 4vw, 40px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #8e8e8e;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.instagram-upload-btn:hover {
    border-color: #0095f6;
    color: #0095f6;
    background: #f0f8ff;
}

.instagram-upload-btn i {
    font-size: 24px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(4px, 1vw, 8px);
    max-width: 100%;
}

.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.grid-item:hover img,
.grid-item:hover video {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.2s;
}

.grid-item:hover .item-overlay {
    opacity: 1;
}

.delete-btn,
.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ff3040;
    color: white;
}

.play-btn:hover {
    background: #0095f6;
    color: white;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.empty-slot {
    background: #f8f9fa;
    border: 2px dashed #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-slot-content {
    color: #c7c7c7;
    font-size: 24px;
}

.completion-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.completion-content {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.completion-content i {
    font-size: 24px;
}

.completion-content span {
    font-size: 18px;
    font-weight: 600;
}

.upload-submit {
    margin-top: 15px;
}

/* Responsive adjustments for Instagram-style profile */
@media (max-width: 767.98px) {
    .profile-header-card {
        padding: 20px;
    }

    .profile-stats {
        gap: 20px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 10px;
    }

    .completion-content {
        flex-direction: column;
        gap: 10px;
    }

    .instagram-upload-btn {
        padding: 30px 20px;
        min-width: auto;
        width: 100%;
    }

    .crop-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .file-preview-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .aspect-ratio-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .crop-actions {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .profile-photo-large,
    .profile-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .profile-username {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }
}

/* Very Small Devices (320px and below) */
@media (max-width: 320px) {
    .hero-banner {
        height: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        left: 0;
        right: 0;
    }

    .banner-container {
        height: auto;
        width: 100vw;
        position: relative;
        margin: 0;
        padding: 0;
    }

    .banner-container img {
        width: 100vw;
        height: auto;
        object-fit: contain;
        object-position: center;
        position: relative;
        z-index: 1;
        min-width: 100vw;
        display: block;
    }

    .banner-overlay {
        padding: 0.8rem 1rem;
        bottom: 15px;
        left: 5%;
        right: 5%;
        width: 90%;
        border-radius: 12px;
        background: transparent !important;
        text-align: center;
    }

    .banner-overlay .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    /* Additional mobile responsive fixes */
    .application-card {
        margin-bottom: 10px;
    }

    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.4em;
    }
}

/* Landscape Phone Orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    .qr-section {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .hero-banner {
        min-height: clamp(180px, 25vh, 250px);
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .banner-container {
        min-height: clamp(180px, 25vh, 250px);
        width: 100vw;
    }

    .banner-container img {
        width: 100vw;
        min-width: 100vw;
        height: 100%;
        min-height: clamp(180px, 25vh, 250px);
    }

    .banner-overlay {
        padding: 0.5rem 1rem;
        bottom: 10px;
    }
}

/* Additional Full Width Banner Fix */
@media (max-width: 768px) {
    .hero-banner {
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        width: 100vw !important;
        position: relative;
        left: 0;
        right: 0;
    }

    .banner-container {
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .banner-container img {
        width: 100vw !important;
        min-width: 100vw !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Instagram-style Cropping Modal */
.crop-modal .modal-dialog {
    max-width: 600px;
    margin: 30px auto;
}

.crop-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.crop-container {
    max-height: 400px;
    overflow: hidden;
    background: #f8f9fa;
}

.crop-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.crop-controls {
    padding: 20px;
    background: white;
    border-top: 1px solid #dbdbdb;
}

.aspect-ratio-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.aspect-btn {
    background: #f8f9fa;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #262626;
}

.aspect-btn.active,
.aspect-btn:hover {
    background: #0095f6;
    color: white;
    border-color: #0095f6;
}

.crop-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.crop-actions .btn {
    min-width: 100px;
}

/* File Preview Styles */
.file-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.file-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.file-preview-item.processing {
    border-color: #ffc107;
}

.file-preview-item.processed {
    border-color: #28a745;
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.processing-indicator,
.success-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.success-indicator {
    background: #28a745;
}

.crop-image {
    max-width: 100%;
    display: block;
}

.crop-controls {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.aspect-ratio-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.aspect-btn {
    background: white;
    border: 2px solid #dbdbdb;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.aspect-btn.active {
    border-color: #0095f6;
    background: #e3f2fd;
    color: #0095f6;
}

.aspect-btn:hover {
    border-color: #0095f6;
}

.crop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.crop-actions .btn {
    min-width: 100px;
}

/* Multiple file preview */
.file-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.file-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s;
}

.file-preview-item:hover {
    border-color: #0095f6;
    transform: scale(1.05);
}

.file-preview-item.processing {
    border-color: #ffc107;
}

.file-preview-item.processed {
    border-color: #28a745;
}

.file-preview-item img,
.file-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-preview-item:hover .file-preview-overlay {
    opacity: 1;
}

.file-preview-overlay i {
    color: white;
    font-size: 24px;
}

.processing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffc107;
    font-size: 20px;
}

.success-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #28a745;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}