.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
}

@media (max-width: 768px) {
    .dashboard-container {
        background: #f9fafb;
        padding: 0.5rem;
    }
}

.hero-section {
    width: 100vw;
    min-height: 60vh;
    padding: 100px 20px;
    background: linear-gradient(135deg, #cfe3e6, #d8dee8);
    position: relative;
    overflow: hidden;
    margin: 0;
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px;
        min-height: 50vh;
    }
}

.hero-section .absolute.inset-0 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-section .relative.z-10 {
    position: relative;
    z-index: 10;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 550px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .search-container {
        max-width: 100%;
        margin: 0 1rem;
        border-radius: 20px;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
    z-index: 2;
}

@media (max-width: 640px) {
    .search-icon {
        left: 15px;
        font-size: 14px;
    }
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: none;
    border-radius: 25px;
    background: transparent;
    font-size: 16px;
    color: #374151;
    outline: none;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .search-input {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.95);
}

.search-button {
    background: #0ea5a4;
    color: white;
    border: 1px solid #0ea5a4;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .search-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

.search-button:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.events-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
    align-items: stretch;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .events-grid {
        gap: 1rem;
        padding: 0;
    }
}

.event-card {
    background: white;
    border-radius: 0.875rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.1);
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(229, 231, 235, 0.2);
}

.event-card .event-image {
    height: 160px;
    min-height: 160px;
    max-height: 160px;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border-radius: 12px;
    margin: 12px;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-card .event-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0.75rem;
}

.event-card .event-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.025em;
    min-height: 2.8em;
    flex: 1;
}

.event-card .category-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    position: static;
    z-index: 10;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    white-space: nowrap;
}

.event-card .event-description {
    display: none;
}

.event-card .event-details {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.event-card .event-details .detail-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.event-card .event-details .detail-row.full-width {
    grid-template-columns: 1fr;
}

.event-card .event-details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.event-card .event-details .detail-item i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.event-card .event-details .detail-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card .register-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    margin: 0;
}

.event-card .register-btn:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
    transform: translateY(-1px);
}

.event-card .register-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .event-card {
        border-radius: 0.75rem;
        margin-bottom: 0;
        min-height: 400px;
    }
    
    .event-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
    
    .event-card .event-image {
        height: 140px;
        min-height: 140px;
        max-height: 140px;
        border-radius: 12px;
        margin: 10px;
    }
    
    .event-card .event-content {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .event-card .event-title {
        font-size: 0.95rem;
        min-height: 2.66em;
    }
    
    .event-card .event-description {
        font-size: 0.8rem;
    }
    
    .event-card .category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        flex-shrink: 0;
    }
    
    .event-card .register-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .event-card, .bg-white.rounded-xl {
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        padding: 1rem;
    }
    
    .event-card .card-body {
        padding: 1rem;
    }
    
    .event-card .event-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .event-card .event-details {
        font-size: 0.875rem;
    }
    
    .event-card .event-details .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .card, .prof-card, .event-card {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 640px) {
    .dashboard-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-container h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-container h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 640px) {
    .dashboard-container .btn-group,
    .dashboard-container .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-container .action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
}

@media (max-width: 640px) {
    .overflow-x-auto {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem !important;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }
    
    main {
        overflow-x: hidden;
    }
    
    .container, .max-w-4xl, .max-w-6xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 640px) {
    main {
        margin-left: 0 !important;
        transition: margin-left 0.3s ease;
    }
    
    main.sidebar-open {
        margin-left: 0 !important;
    }
}

.compact-action-btn {
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.search-button:hover {
    background: #7e97d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 140, 223, 0.3);
    border-color: #0ea5a4;
}

.search-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 140, 223, 0.3);
}

@media (max-width: 640px) {
    .search-container {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        padding: 12px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .search-icon {
        left: 16px;
    }
    
    .search-input {
        padding: 12px 16px 12px 45px;
        font-size: 15px;
    }
    
    .search-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 10px;
    }
    
    .search-input {
        padding: 10px 14px 10px 40px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 14px;
        font-size: 14px;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(3deg);
    }
    66% {
        transform: translateY(5px) rotate(-3deg);
    }
}

@keyframes float-medium {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-5px) rotate(1deg);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(-20px) rotate(5deg);
    }
    40% {
        transform: translateY(15px) rotate(-5deg);
    }
    60% {
        transform: translateY(-10px) rotate(3deg);
    }
    80% {
        transform: translateY(8px) rotate(-3deg);
    }
}

@keyframes float-slow-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(10px) rotate(-3deg);
    }
    66% {
        transform: translateY(-5px) rotate(3deg);
    }
}

@keyframes float-medium-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(15px) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes float-fast-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    20% {
        transform: translateY(20px) rotate(-5deg);
    }
    40% {
        transform: translateY(-15px) rotate(5deg);
    }
    60% {
        transform: translateY(10px) rotate(-3deg);
    }
    80% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fade-in 0.8s ease-out 0.2s forwards;
}

.animate-fade-in-delay-2 {
    animation: fade-in 0.8s ease-out 0.4s forwards;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out 0.6s forwards;
}

.animate-float-slow {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-float-slow-reverse {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-float-medium-reverse {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.animate-float-fast-reverse {
    animation: float-slow-reverse 7s ease-in-out infinite;
}

.floating-card-left-1,
.floating-card-left-2,
.floating-card-left-3,
.floating-card-right-1,
.floating-card-right-2,
.floating-card-right-3 {
    width: 180px;
    height: 180px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 35px -5px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(2px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.9);
    position: absolute;
}

.floating-card-left-1 {
    top: 60px;
    left: 40px;
    transform: rotate(-8deg) scale(1.3);
    z-index: 15;
}

.floating-card-left-2 {
    top: 35%;
    left: 80px;
    transform: rotate(-4deg) scale(1.1);
    z-index: 14;
}

.floating-card-left-3 {
    bottom: 60px;
    left: 120px;
    transform: rotate(-6deg) scale(0.9);
    z-index: 13;
}

.floating-card-right-1 {
    top: 60px;
    right: 40px;
    transform: rotate(8deg) scale(1.25);
    z-index: 15;
}

.floating-card-right-2 {
    top: 35%;
    right: 80px;
    transform: rotate(4deg) scale(1.05);
    z-index: 14;
}

.floating-card-right-3 {
    bottom: 60px;
    right: 120px;
    transform: rotate(6deg) scale(0.85);
    z-index: 13;
}

.floating-card-left-1:hover,
.floating-card-left-2:hover,
.floating-card-left-3:hover,
.floating-card-right-1:hover,
.floating-card-right-2:hover,
.floating-card-right-3:hover {
    transform: scale(1.25) rotate(0deg);
    box-shadow: 0 40px 45px -5px rgba(0, 0, 0, 0.25);
    border-color: #0ea5a4;
    z-index: 25;
    filter: brightness(1.15);
}

@media (max-width: 1024px) {
    .floating-card-left-1,
    .floating-card-left-2,
    .floating-card-left-3,
    .floating-card-right-1,
    .floating-card-right-2,
    .floating-card-right-3 {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .floating-card-left-1,
    .floating-card-left-2,
    .floating-card-left-3,
    .floating-card-right-1,
    .floating-card-right-2,
    .floating-card-right-3 {
        width: 90px;
        height: 90px;
    }
    
    .floating-card-left-1 { left: 20px; }
    .floating-card-left-2 { left: 40px; }
    .floating-card-left-3 { left: 60px; }
    .floating-card-right-1 { right: 20px; }
    .floating-card-right-2 { right: 40px; }
    .floating-card-right-3 { right: 60px; }
}

@media (max-width: 640px) {
    .floating-card-left-1,
    .floating-card-left-2,
    .floating-card-left-3 {
        left: -30px;
        opacity: 0.2;
    }
    
    .floating-card-right-1,
    .floating-card-right-2,
    .floating-card-right-3 {
        right: -30px;
        opacity: 0.2;
    }
}

@media (max-width: 640px) {
    .dashboard-container h2 {
        color: #1f2937;
    }
    
    .dashboard-container p {
        color: #4b5563;
    }
    
    .category-btn.active {
        background-color: #0ea5a4;
        color: #ffffff;
    }
}

.category-btn {
    transition: all 0.3s ease;
    position: relative;
}

.category-btn:not(.active) {
    opacity: 0.7;
    transform: scale(0.95);
    color: #000000;
}

.category-btn:not(.active):hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.category-btn.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 10;
}

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

@media (max-width: 640px) {
    .stat-card {
        padding: 0.75rem;
    }
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


.event-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .event-card {
        border-radius: 0.5rem;
    }
}

.event-image {
    height: 12rem;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .event-image {
        height: 10rem;
    }
}

.event-content {
    padding: 1rem;
}

@media (max-width: 640px) {
    .event-content {
        padding: 0.75rem;
    }
}

.event-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .event-title {
        font-size: 1rem;
    }
}

.event-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for browsers that don't support line-clamp */
    display: -moz-box;
    -moz-line-clamp: 2;
    -moz-box-orient: vertical;
    display: box;
    line-clamp: 2;
    box-orient: vertical;
}

@media (max-width: 640px) {
    .event-description {
        font-size: 0.8rem;
    }
}

.event-details {
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .event-details {
        font-size: 0.8rem;
        gap: 0.375rem;
    }
}

.category-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    text-transform: capitalize;
}

.completed-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    background: #10b981;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(4px);
}

.completed-badge i {
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .category-badge {
        padding: 0.1875rem 0.375rem;
        font-size: 0.6875rem;
    }
    
    .completed-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
}

.event-card .flex.justify-end {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.view-details-btn {
    background: #ffffff;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-details-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .view-details-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

.no-events {
    text-align: center;
    padding: 3rem 1rem;
}

@media (max-width: 640px) {
    .no-events {
        padding: 2rem 1rem;
    }
}

body {
    overflow-x: hidden;
}

.responsive-text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

@media (min-width: 768px) {
    .responsive-text-2xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.responsive-text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

@media (min-width: 768px) {
    .responsive-text-3xl {
        font-size: 3rem;
        line-height: 1;
    }
}
