/* Główne style aplikacji */
body {
    font-family: 'Poppins', sans-serif;
}

/* Sidebar styles */
.sidebar {
    background-color: #fafafa;
    transition: transform 0.3s ease-in-out;
}

/* Responsive styles for mobile sidebar */
.mobile-header {
    height: 64px; /* Fixed height for mobile header */
    z-index: 50;
}

/* Adjust main content on mobile to account for fixed header */
@media (max-width: 767px) {
    .main-content {
        padding-top: 64px; /* Same as mobile header height */
    }
}

/* Sidebar width on desktop */
@media (min-width: 768px) {
    .sidebar {
        width: 256px; /* Fixed width on desktop */
    }
}

/* Z-index management */
#mobile-overlay {
    z-index: 40;
}

#sidebar {
    z-index: 50;
}

/* Kontener canvas - zaktualizowany dla 300x300px */
.canvas-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}


/* Opcje podglądu */
.preview-option {
    cursor: pointer;
    transition: all 0.2s;
}

.preview-option:hover {
    transform: scale(1.02);
}

.preview-option.selected {
    border: 2px solid #006efb;
    background: #f2f5fe;
}

/* Kontener wejścia plików */
.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-container input[type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-label:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Podgląd zdjęcia */
.photo-preview {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

/* Elementy menu */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.menu-item:hover {
    background: #f1f5f9;
}

.menu-item.active {
    background: white;
    color: black;
    font-weight: 500;
    border: solid rgba(0, 0, 0, 0.2) 1px;
}

.menu-item.inactive {
    opacity: 0.3;
    cursor: not-allowed;
}

.menu-item.inactive:hover {
    background: transparent;
}

/* Elementy mediów */
.media-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.media-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.media-item.selected {
    border-color: #006efb;
    background: #f2f5fe;
}

/* Ikona media */
.media-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border: 1px solid #e2e8f0;
}

/* Preview text elements styling for better visibility */
#preview-firstname,
#preview-lastname,
#preview-function,
#preview-time,
#preview-day,
#preview-program {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}





/* Kontener canvas dla formatu 9:16 - 337.5px x 600px - STAŁA WIELKOŚĆ */
.canvas-container-916 {
    position: relative;
    width: 337.5px;
    height: 600px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
}