/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    /* background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%); */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh;
}

/* ===== LOGIN PAGE STYLES ===== */
.gradient-background {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #DE3A9B 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.main-container {
    margin-top: 15px;
}

.card {
    border-radius: 32px;
    border: 1px solid rgba(222, 58, 155, 0.12);
    box-shadow: 0 20px 60px rgba(222, 58, 155, 0.08), 0 8px 32px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 32px 80px rgba(222, 58, 155, 0.12), 0 12px 48px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.login-btn {
    border-radius: 32px;
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    color: #fff;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
}

.login-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff6bb3 0%, #DE3A9B 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(222, 58, 155, 0.25);
}

.pink-text {
    color: #DE3A9B;
    text-decoration: none;
    font-weight: 500;
}

.pink-text:hover {
    color: #ff6bb3;
}

.grey-text {
    color: #6c757d;
}

.dark-text {
    color: #333;
    font-weight: 500;
}

.company-text {
    font-size: 12px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.nodecor {
    text-decoration: none;
}

.goto {
    margin-bottom: 0px;
}

/* Input icons */
.icon-mail {
    padding-left: 48px;
    background: url("../img/arroba_3059486.png") no-repeat left;
    background-size: 20px;
    background-position: 16px center;
}

.icon-id {
    padding-left: 48px;
    background: url("../img/9424604.png") no-repeat left;
    background-size: 20px;
    background-position: 16px center;
}

/* ===== DASHBOARD STYLES ===== */
#wrapper {
    padding-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

#wrapper.toggled {
    padding-left: 250px;
}

#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 250px;
    width: 0;
    height: 100%;
    margin-left: -250px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 4px 0 32px rgba(222, 58, 155, 0.06); */
    border-right: 1px solid rgba(222, 58, 155, 0.08);
}

#wrapper.toggled #sidebar-wrapper {
    width: 250px;
}

#page-content-wrapper {
    width: 100%;
    position: absolute;
    padding: 15px;
}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -250px;
}

/* Sidebar Styles */
.sidebar-nav {
    position: absolute;
    top: 120px;
    width: 250px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-nav li {
    text-indent: 0;
    line-height: 56px;
    border-bottom: 1px solid rgba(222, 58, 155, 0.06);
}

.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 16px 24px;
    font-weight: 500;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    text-decoration: none;
    color: #DE3A9B;
    background: linear-gradient(135deg, rgba(222, 58, 155, 0.08) 0%, rgba(222, 58, 155, 0.04) 100%);
    border-left: 4px solid #DE3A9B;
    transform: translateX(4px);
}

.sidebar-nav li a i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    color: #DE3A9B;
}

.sidebar-brand {
    text-align: center;
    padding: 32px 16px;
    border-bottom: 1px solid rgba(222, 58, 155, 0.06);
    margin-bottom: 0;
    background: #ffffff;
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
#navbar-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 0;
    height: 60px;
    border: none;
    /* box-shadow: 0 4px 20px rgba(222, 58, 155, 0.06); */
    border-bottom: 1px solid rgba(222, 58, 155, 0.06);
}

#navbar-wrapper .navbar-brand {
    color: #333;
    font-size: 18px;
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar-wrapper .navbar-brand:hover {
    color: #DE3A9B;
}

/* Content wrapper */
#content-wrapper {
    padding: 40px;
    min-height: calc(100vh - 60px);
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    background: #ffffff;
}

#wrapper.toggled #content-wrapper {
    margin-left: 250px;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn.pink {
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    border: none;
    color: white;
    border-radius: 32px;
    padding: 16px 32px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(222, 58, 155, 0.15);
    position: relative;
    overflow: hidden;
}

.btn.pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn.pink:hover::before {
    left: 100%;
}

.btn.pink:hover {
    background: linear-gradient(135deg, #ff6bb3 0%, #DE3A9B 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(222, 58, 155, 0.25);
}

.btn.pink-btn {
    border-radius: 32px;
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(222, 58, 155, 0.15);
}

.btn.pink-btn:hover {
    background: linear-gradient(135deg, #ff6bb3 0%, #DE3A9B 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(222, 58, 155, 0.25);
}

.btn.notice-button {
    background-color: transparent;
    color: #DE3A9B;
    border: 2px solid #DE3A9B;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.notice-button:hover {
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Notices */
.nav-notice {
    color: #666;
    font-size: 14px;
    float: right;
    padding: 10px 0;
}

/* ===== GALLERY STYLES ===== */
.image-thumbnail {
    cursor: pointer;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(222, 58, 155, 0.08);
    border: 2px solid transparent;
    overflow: hidden;
}

.image-thumbnail:hover {
    transform: scale(1.04) rotate(0.5deg);
    box-shadow: 0 16px 48px rgba(222, 58, 155, 0.16);
    border-color: rgba(222, 58, 155, 0.2);
}

/* Modal styles */
.modal-content {
    background-color: transparent !important;
    border: 0px !important;
    border-radius: 24px;
    overflow: hidden;
}

.modal-dialog {
    max-width: 1000px;
}

.modal-header,
.modal-body,
.modal-footer {
    border: none;
}

.close span {
    display: none;
}

.close {
    color: white;
    opacity: 1;
    text-shadow: none;
    font-size: 2rem;
}

.close:hover {
    color: #DE3A9B;
}

.btn.btn-secondary.next-image-btn,
.btn.btn-secondary.prev-image-btn {
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    border: none;
    border-radius: 32px;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(222, 58, 155, 0.2);
}

.btn.btn-secondary.next-image-btn:hover,
.btn.btn-secondary.prev-image-btn:hover {
    background: linear-gradient(135deg, #ff6bb3 0%, #DE3A9B 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(222, 58, 155, 0.3);
}

/* ===== SLIDESHOW STYLES ===== */
.fullscreen-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== QR CODE STYLES ===== */
.qr-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.qr-comments {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 300;
}

.progress-bar {
    border: 2px solid rgba(255, 255, 255, 0.3);
    height: 20px;
    width: 250px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 50px;
    width: 0%;
    animation: fill 60s linear 1;
}

@keyframes fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== FORMS ===== */
.form-control {
    border: 2px solid rgba(222, 58, 155, 0.12);
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.form-control:focus {
    border-color: #DE3A9B;
    box-shadow: 0 0 0 0.2rem rgba(222, 58, 155, 0.15), 0 8px 24px rgba(222, 58, 155, 0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

.input-group-text {
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%);
    color: white;
    border: none;
    border-radius: 20px 0 0 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (min-width: 768px) {
    .main-container {
        margin-top: 150px;
    }
    
    #wrapper {
        padding-left: 250px;
    }
    
    #sidebar-wrapper {
        width: 250px;
    }
    
    #content-wrapper {
        margin-left: 0;
    }
    
    #navbar-wrapper .navbar-brand {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .qr-comments {
        font-size: 24px;
    }
    
    .progress-bar {
        width: 200px;
    }
    
    .nav-notice {
        float: none !important;
        text-align: center;
        margin-top: 10px;
    }
    
    .sidebar-nav {
        width: 100%;
    }
    
    #content-wrapper {
        padding: 20px;
    }
    
    .card {
        border-radius: 24px;
    }
    
    .btn.pink {
        padding: 14px 28px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-pink {
    color: #DE3A9B !important;
}

.bg-pink {
    background: linear-gradient(135deg, #DE3A9B 0%, #ff6bb3 100%) !important;
}

.border-pink {
    border-color: #DE3A9B !important;
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(0px) scale(0.98);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* ===== HOME PAGE CARDS ===== */
.home-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    border: 1px solid rgba(222, 58, 155, 0.08);
    padding: 40px;
    margin: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(222, 58, 155, 0.06);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DE3A9B 0%, #ff6bb3 100%);
}

.home-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 64px rgba(222, 58, 155, 0.12);
    border-color: rgba(222, 58, 155, 0.16);
}

.home-card i {
    font-size: 3.5rem;
    color: #DE3A9B;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-card:hover i {
    transform: scale(1.1) rotate(3deg);
    color: #ff6bb3;
}

.home-card h5 {
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.4rem;
}

.home-card p {
    color: #666;
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.home-card .btn {
    border-radius: 32px;
    padding: 16px 32px;
    font-weight: 600;
}

/* ===== ALERTS AND NOTIFICATIONS ===== */
.alert-info {
    background: linear-gradient(135deg, rgba(222, 58, 155, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(222, 58, 155, 0.12);
    color: #333;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 20px 24px;
}

.alert-info i {
    color: #DE3A9B;
}

.notification {
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
}

/* ===== CARDS STYLING ===== */
.card {
    border: 1px solid rgba(222, 58, 155, 0.06);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(222, 58, 155, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.card:hover {
    box-shadow: 0 24px 64px rgba(222, 58, 155, 0.12);
    transform: translateY(-4px);
}

.card-title {
    color: #333;
    font-weight: 600;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    color: #333;
}

h2 {
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #DE3A9B 0%, #ff6bb3 100%);
    border-radius: 2px;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
*:focus {
    outline: 2px solid #DE3A9B;
    outline-offset: 3px;
}

.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(222, 58, 155, 0.25);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media screen and (max-width: 767px) {
    .home-card {
        margin: 12px 8px;
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .sidebar-nav {
        top: 100px;
    }
    
    .sidebar-brand {
        height: 100px;
        padding: 20px;
    }
    
    .card {
        margin-bottom: 16px;
        border-radius: 20px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar-wrapper,
    .navbar-wrapper,
    .btn {
        display: none !important;
    }
    
    #content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}

/* ===== MODERN TOUCHES ===== */
@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.sparkle {
    position: relative;
}

.sparkle::before {
    content: '✨';
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 14px;
    animation: sparkle 2s infinite;
    animation-delay: 0.5s;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern loading state (no "vent venligst") */
.no-loading {
    pointer-events: all !important;
    opacity: 1 !important;
}

/* Improved micro-interactions */
.interactive:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Modern focus ring */
.modern-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(222, 58, 155, 0.2);
}

/* Subtle gradient overlays for depth */
.depth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}


    .modal-content {
        background-color: transparent !important;
        border: 0px !important;
    }

    .close span {
        display: none;
    }

    .modal-dialog {
        max-width: 1000px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        border: none;
    }

    .btn.btn-secondary.next-image-btn,
    .btn.btn-secondary.prev-image-btn {
        background-color: #DE3A9B;
    }
    
    .ultrasharp-switch {
        margin-bottom: 20px;
    }
    
    .switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 34px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: #DE3A9B;
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }

    /* ===== CUSTOM SELECT FOR SLIDESHOW ===== */
.interval-select {
    border: 2px solid rgba(222, 58, 155, 0.12);
    border-radius: 32px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(222, 58, 155, 0.06);
    transition: all 0.3s ease;
    width: 140px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23DE3A9B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.interval-select:hover {
    border-color: rgba(222, 58, 155, 0.25);
    box-shadow: 0 6px 16px rgba(222, 58, 155, 0.1);
    transform: translateY(-1px);
}

.interval-select:focus {
    outline: none;
    border-color: #DE3A9B;
    box-shadow: 0 0 0 0.2rem rgba(222, 58, 155, 0.25);
    background: #fff;
}

.interval-select option {
    font-weight: 500;
}

.user-guide .list-group-item {
    border: none;
    background: #fff;
    margin-bottom: 15px;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    padding: 20px 25px;
}

.user-guide h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.user-guide ul {
    margin-top: 10px;
    padding-left: 20px;
}

.user-guide li {
    margin-bottom: 6px;
}
