
/* Mobile Responsive */
@media (max-width: 1199px) {
    .modal-dialog {
        width: 950px !important;
        max-width: 950px !important;
    }
}

@media (max-width: 991px) {
    .container.navi,
    .container.main-container {
        max-width: unset;
    }

    .drop-account {
        order: 1 !important
    }

    .drop-account .dropdown-menu {
        left: unset;
        right: 0px;
    }

    .navbar.bg-body-secondary {
        top: -95px;
        z-index: 999;
    }

    .panel-container {
        height: 520px;
    }

    .panel-login,
    .panel-register {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .panel-login .col-6, 
    .panel-register .col-6 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .panel-login .col-6.p-0,
    .panel-register .col-6.p-0 {
        position: absolute;
        top: 0; 
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        overflow: hidden; 
    }
    .panel-login .col-6.p-0 img,
    .panel-register .col-6.p-0 img {
        filter: blur(3px);
        transform: scale(1); 
    }

    .panel-login .col-6.d-flex,
    .panel-register .col-6.d-flex {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 90% !important;
        min-height: 80%;
        margin: auto;
        background-color: rgba(255, 255, 255, 0.8); 
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        flex-direction: column;
    }

    .input-company {
        max-width: 255px !important;
    }

    .column-mobile.col-md-6{
        width: 100% !important;
    }

    .modal-dialog {
        max-width: var(--bs-modal-width) !important;
    }

    /* .modal-content {
        width: 520px !important;
    } */

    .column-separator {
        border-top: 1px solid #dee2e6;
        padding-top: 15px;
        border-left: unset !important;
        padding-left: unset !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-controls,
    .nav-selectors,
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-statistics {
        grid-template-columns: 1fr;
    }
    
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-value {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-day {
        height: 80px;
    }
    
    .day-container {
        padding: 0.5rem;
    }
    
    .day-number {
        font-size: 0.875rem;
    }
    
    .day-content {
        font-size: 0.625rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .schedule-section {
        grid-template-columns: 1fr;
    }

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

    .team-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-status {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-action-alert {
        flex-direction: column;
        text-align: center;
        min-height: 250px;
    }
    
    .stats-grid,
    .schedule-section {
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .actions-left {
        padding-top: .5rem !important;
    }

    .dropdown-menu {
        font-size: 14px;
        padding: 0px;
    }
    
    .calendar-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: center;
    }

    .company-item__header {
        padding: 1rem;
    }
    
    .company-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .company-info-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .add-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .add-company-icon {
        width: 36px;
        height: 36px;
    }

    .input-company {
        max-width: 155px !important;
    }

    .input-group {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 621px) {
    .navbar-brand {
        margin-right: 0px;
        font-size: 18px;
        max-width: 120px;
    }

    .input-company {
        max-width: 150px !important;
    }

    .navbar-toggler {
        width: 50px;
        padding: 0px!important;
    }

    .navbar-toggler-icon {
        max-width: 40px;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .input-group {
        flex-wrap: unset !important;
    }
}

@media (max-width: 425px) {
    .navbar-brand {
        margin-right: 0px;
        font-size: 16px;
        max-width: 100px;
    }

    .input-company {
        max-width: 150px !important;
    }

    .navbar-toggler {
        width: 40px;
        padding: 0px!important;
    }

    .navbar-toggler-icon {
        max-width: 30px;
    }

    .modal-content {
        width: 425px !important;
    }

    .input-group {
        flex-wrap: unset !important;
    }
}

@media (max-width: 390px) {
    .navbar-brand {
        margin-right: 0px;
        font-size: 14px;
        /* max-width: 100px; */
        min-width: 50px;
    }
    
    .input-company {
        font-size: 14px !important;
        max-width: 120px !important;
    }

    .navbar-toggler {
        width: 30px;
        padding: 0px!important;
    }

    .navbar-toggler-icon {
        max-width: 20px;
    }

    .modal-content {
        width: 390px !important;
    }

    .input-group {
        flex-wrap: unset !important;
    }

    .modal-body {
        padding: 0px !important;
    }
    
    .modal-body .container {
        padding: 5px  !important;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .container.navi,
    .container.main-container {
        max-width: unset;
    }

    .drop-account .dropdown-menu {
        left: unset;
        right: 0px;
    }

    .navbar.bg-body-secondary {
        top: -95px;
        z-index: 999;
    }

    /* Dodaj te reguły dla poprawki navbara */
    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .navbar .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Zapewnij, że body nie ma poziomego scrollowania */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Upewnij się, że wszystkie sekcje są responsywne */
    .hero,
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Popraw buttony w navbarze na mobile */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }

    .navbar .d-flex.gap-2 {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .navbar .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    /* Dodatkowe reguły dla bardzo małych ekranów */
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero {
        padding: 100px 0 60px; /* Zwiększ top padding ze względu na fixed navbar */
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-controls,
    .nav-selectors,
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-statistics {
        grid-template-columns: 1fr;
    }
    
    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-value {
        width: 100%;
        justify-content: space-between;
    }
    
    .calendar-day {
        height: 80px;
    }
    
    .day-container {
        padding: 0.5rem;
    }
    
    .day-number {
        font-size: 0.875rem;
    }
    
    .day-content {
        font-size: 0.625rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .schedule-section {
        grid-template-columns: 1fr;
    }

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

    .team-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-status {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-action-alert {
        flex-direction: column;
        text-align: center;
        min-height: 250px;
    }
    
    .stats-grid,
    .schedule-section {
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 120px 0 60px; /* Jeszcze więcej paddingu na bardzo małych ekranach */
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .actions-left {
        padding-top: .5rem !important;
    }

    .dropdown-menu {
        font-size: 14px;
        padding: 0px;
    }
    
    .calendar-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: center;
    }

    .company-item__header {
        padding: 1rem;
    }
    
    .company-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .company-info-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .add-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .add-company-icon {
        width: 36px;
        height: 36px;
    }
}