@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #e0eafc, #cfdef3); /* Subtelny gradient tła */
    color: #2c3e50;
    min-height: 100vh;
    
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95); /* Lekko przezroczyste białe tło */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 2.2em;
    letter-spacing: 1px;
    
}

.note-form, .search-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-form:hover, .search-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 1em;
    color: #2c3e50;
    background: #f9fbfc;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6a82fb;
    box-shadow: 0 0 5px rgba(106, 130, 251, 0.3);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background: linear-gradient(45deg, #068006, #098d14); /* Gradient na przycisku */
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 130, 251, 0.4);
}

.logout, .edit, .cancel, .back {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout, .cancel {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.logout:hover, .cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.back {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.edit {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.notes-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsywna siatka */
}

.note {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.note:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f9fbfc;
}

.note h2 {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.note p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Styl treści notatki - pogrubiony z większym odstępem od tagów */
.note p:first-of-type {
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 35px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
    font-size: 20px;
}

/* Gwiazdka ulubionych w prawym górnym rogu */
.favorite-star {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.favorite-star:hover {
    color: #28a745;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.favorite-star.active {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
}

.favorite-star.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Wyróżnienie ulubionych notatek */
.note.favorite {
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(255, 255, 255, 1));
}

.note.favorite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 8px 8px 0 0;
}

/* Specjalne style dla mobilnych urządzeń */
@media (max-width: 768px) {
    .note p:first-of-type {
        argin-bottom: 12px;
        padding-bottom: 5px;
        font-size: 20px;
        line-height: 1.5;
    }
    
    .tags, .files {
        margin: 12px 0;
        padding-top: 3px;
    }
    
    .note-content {
        font-size: 1.1em;
    }
    
    /* Zwiększenie przestrzeni dotykowej - łatwiejsze klikanie na telefonach */
    .file-actions a, .note-actions a {
        padding: 8px 15px;
        margin: 5px 3px;
    }
    
    .pdf-icon, .file-icon {
        width: 70px;
        height: 70px;
    }
    
    /* Większe przerwy między elementami w notatce na telefonie */
    .note {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .note-actions {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }

    /* Ukryj przełącznik widoku na urządzeniach mobilnych */
    .view-toggle {
        display: none !important;
    }

    .favorite-star {
        top: 8px;
        right: 8px;
        font-size: 18px;
        width: 30px;
        height: 30px;
    }
}

.tags, .files {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9em;
    margin: 15px 0;
    font-weight: normal;
    padding-top: 5px;
}

.tags strong, .files strong {
    color: #7f8c8d;
    font-weight: normal;
}

.tags {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9em;
    margin: 10px 0;
}

.tags strong {
    color: #2c3e50;
}

.files {
    margin: 10px 0;
}

.attachment {
    max-width: 200px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.files a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.files a:hover {
    text-decoration: underline;
}

.meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin: 10px 0;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
}

.meta p {
    margin: 5px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.meta strong {
    font-weight: 600;
}

.date-info {
    font-size: 0.85em; /* Zmniejszono z 0.9em na 0.85em */
    font-weight: normal;
}

.date-box {
    margin: 20px 0;
    padding: 12px 15px;
    background-color: #f1f8ff;
    border: 1px solid #c8e1ff;
    border-radius: 6px;
    color: #0366d6;
    font-size: 0.9em; /* Zmniejszono z 0.9em na 0.8em */
}

.date-box p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.date-box strong {
    font-weight: 600;
    font-size: 0.9em; /* Dodano mniejszą czcionkę dla nagłówków */
}

.bottom-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-start;
}

.error {
    color: #e74c3c;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    .note, .note-form, .search-form {
        padding: 15px;
    }
    input, textarea, button {
        font-size: 0.9em;
    }
    .notes-list {
        grid-template-columns: 1fr; /* Jedna kolumna na małych ekranach */
    }
}
.thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 5px;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.file-item {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    max-width: 200px;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.download-link, .view-link {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.view-link {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.download-link:hover, .view-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.file-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.full-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.file-list {
    
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.files strong {
    display: block;
    margin-bottom: 5px;
}
.delete-file {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    margin-left: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delete-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.delete-note {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.delete-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.tags-selection {
    margin: 15px 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(45deg, #6c757d, #495057);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tag-checkbox:hover {
    background: linear-gradient(45deg, #5a6268, #343a40);
}

.tag-checkbox input {
    cursor: pointer;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Szybkie akcje w nagłówku */
.quick-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Responsywność dla akcji */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .quick-actions {
        order: 2;
        width: 100%;
        justify-content: space-between;
    }
    
    .user-menu {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .draft-btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.new-note-btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: linear-gradient(45deg, #28a745, #218838);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-note-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.add-note-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #28a745, #218838);
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: transform 0.2s ease;
}

.add-note-mobile:hover {
    transform: scale(1.1);
}

/* Media queries */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
    .desktop-only {
        display: none;
    }
}

.new-tags-input {
    margin-top: 15px;
}

.new-tags-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

.file-upload {
    margin: 15px 0;
}

.dropzone {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropzone.dragover {
    background-color: #e9ecef;
    border-color: #28a745;
}

.dropzone p {
    margin: 0;
    color: #6c757d;
}

.file-preview {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.file-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
}

.file-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.file-icon.pdf-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.file-icon.audio-icon {
    background: linear-gradient(135deg, #28a745, #218838);
}

.file-icon.video-icon {
    background: linear-gradient(135deg, #6610f2, #520dc2);
}

.file-icon.generic-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.file-name {
    font-size: 12px;
    word-break: break-word;
    color: #333;
    max-width: 100px;
}

.file-preview-item p {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
    word-break: break-all;
}

/* Style dla mobilnego przesyłania plików */
.mobile-upload {
    display: none !important;
}

.file-input-label {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.file-input-label:hover, .file-input-label:focus {
    background: linear-gradient(45deg, #2980b9, #2573a7);
}

.mobile-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Responsywne ukrywanie i pokazywanie elementów */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: block !important;
    }
}

/* Uproszczony interfejs wgrywania plików */
.simple-file-upload {
    margin: 15px 0;
    padding: 15px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    text-align: center;
}

.simple-file-upload strong {
    display: block;
    margin-bottom: 10px;
    color: #495057;
}

.file-input {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    color: #495057;
}

/* Ukrywamy niepotrzebne style */
.dropzone, .mobile-upload {
    display: none !important;
}

.manage-tags-btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 10px;
}

.manage-tags-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.success {
    color: #2ecc71;
    text-align: center;
    font-weight: 500;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 5px;
}

.edit-btn {
    padding: 5px 10px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
}

.delete-disabled {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: not-allowed;
}

/* Przyciski dla urządzeń mobilnych */
.add-note-mobile, .manage-tags-mobile {
    position: fixed;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    z-index: 100;
}

.add-note-mobile {
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #28a745, #218838);
}

/* Nowy przycisk mikrofonu dla urządzeń mobilnych */
.voice-note-btn {
    position: fixed;
    bottom: 20px; /* Pozycja nad przyciskiem dodawania notatki */
    left: 20px; /* Przesunięcie na lewą stronę */
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.2s ease;
    z-index: 100;
}

.voice-note-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.voice-note-btn:active {
    transform: translateY(0);
}

.manage-tags-mobile {
    bottom: 20px;
    left: 20px;
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.add-note-mobile:hover, .manage-tags-mobile:hover {
    transform: scale(1.1);
}

/* Przycisk brudnopisu */
.draft-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.draft-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.import-btn {
    display: none;
}

.more-files {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #607D8B;
    border: 1px dashed #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    min-width: 80px;
    min-height: 80px;
}

.more-files-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.more-files-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Styl przełącznika widoku */
.view-toggle {
    display: flex;
    align-items: center;
    margin-left: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: absolute;
    right: 20px;
    top: 8px; /* Zmniejszono z 12px na 8px, aby przesunąć elementy do góry */
}

.view-btn {
    background: #245aaa;
    border: 1px solid #ddd;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin: 0;
}

.view-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.view-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.view-btn.active {
    background:    #2c9743;
    color: white;
    border-color: transparent;
}

.view-icon {
    font-style: normal;
}

.search-form {
    position: relative;
}

/* Style dla różnych widoków notatek */
.notes-list.grid-view {
    display: grid;
    gap: 20px;
   
}

.notes-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-list.list-view .note {
    width: 100%;
    margin-bottom: 10px;
}

.notes-list.list-view .note .tags,
.notes-list.list-view .note .files {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Responsywne zachowanie przełącznika */
@media (max-width: 600px) {
    .view-toggle {
        top: -33px;
        right: 10px;
    }
    
    .view-btn {
        padding: 4px 8px;
        font-size: 14px;
    }
}

.trash-btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: linear-gradient(45deg, #6c757d, #495057);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-right: 10px;
}

.trash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Style dla sugestii tagów */
.tag-suggestions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none; /* Domyślnie ukryte */
    z-index: 100; /* Wyższy z-index, aby był nad innymi elementami */
}

/* Poprawiony styl dla przycisków sugestii tagów */
.tag-suggestion-btn {
    display: inline-block;
    background: linear-gradient(45deg, #6c757d, #495057);
    color: #fff;
    padding: 8px 12px; /* Większy padding dla obszaru dotykowego */
    border-radius: 15px;
    margin: 5px 3px; /* Większe marginesy między przyciskami */
    font-size: 1em; /* Zwiększony rozmiar czcionki dla telefonów */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px; /* Minimalna wysokość dla łatwiejszego klikania na telefonach */
}

.tag-suggestion-btn:hover,
.tag-suggestion-btn:active {
    background: linear-gradient(45deg, #5a6268, #343a40);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Specjalne style dla urządzeń mobilnych */
@media (max-width: 768px) {
    .tag-suggestions {
        padding: 12px;
    }
    
    .tag-suggestion-btn {
        padding: 10px 15px; /* Jeszcze większy dla mobilnych urządzeń */
        margin: 6px 4px;
        font-size: 1.1em;
        min-height: 40px; /* Większa wysokość dla łatwiejszego dotknięcia */
    }
    
    /* Upewnij się, że sugestie tagów nie są ukrywane na urządzeniach mobilnych */
    .tag-suggestions {
        
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Style dla linków telefonicznych */
.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    color: #2ecc71; /* Przywracamy zielony kolor dla ikony */
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease;
    height: 34px;
    width: 34px;
    background-color: rgba(46, 204, 113, 0.15); /* Lekkie zielone tło */
    border-radius: 50%;
    padding: 4px;
}

.phone-link:hover {
    transform: scale(1.2);
    background-color: rgba(46, 204, 113, 0.3); /* Ciemniejsze zielone tło przy najechaniu */
    box-shadow: 0 0 8px rgba(73, 136, 99, 0.5); /* Zielona poświata */
}

.phone-icon {
    color: #27ae60; /* Ciemniejszy zielony dla ikony */
    stroke-width: 2.2; /* Grubsza linia */
}

/* Nowy styl dla podświetlenia numeru telefonu */
.phone-number {
    color: #3498db; /* Niebieski kolor dla numeru telefonu */
    font-weight: 700; /* Lekko pogrubiony */
}

/* Na urządzeniach mobilnych powiększ ikonę dla łatwiejszego klikania */
@media (max-width: 768px) {
    .phone-link {
        height: 32px;
        width: 32px;
        padding: 6px;
    }
}

/* Na urządzeniach mobilnych powiększ ikonę dla łatwiejszego klikania */
@media (max-width: 768px) {
    .phone-link {
        font-size: 1.4em;
        padding: 3px;
    }
}

/* Style dla nagrywania głosowego */
.voice-recorder {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.voice-recorder h3 {
    margin-top: 0;
    color: #495057;
    font-size: 1.1em;
}

.record-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.record-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.record-button svg {
    margin-right: 8px;
}

.stop-button {
    display: none;
    padding: 8px 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

/* Kontener nagrywania */
.recording-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    text-align: center;
}

.recording-container h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.recording-timer {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.recording-controls {
    margin-top: 15px;
}

.recording-controls button {
    margin: 0 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#stop-button {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

#record-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.recording-container {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.timer-display {
    font-family: monospace;
    font-size: 1.2em;
    color: #e74c3c;
    margin-bottom: 10px;
}

.audio-playback {
    width: 100%;
    margin-top: 10px;
    display: none;
}

.recording-note {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
    margin: 10px 0;
}

.recording-icon {
    color: #e74c3c;
    margin-right: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Style responsywne dla nagrywania głosowego */
@media (max-width: 768px) {
    .voice-recorder {
        padding: 10px;
    }
    
    .record-button, .stop-button {
        padding: 10px 15px;
        font-size: 1em;
        width: 100%;
        justify-content: center;
    }
}

/* Standardowy odtwarzacz audio z dodatkową funkcjonalnością */
.audio-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.audio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.audio-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.audio-title .audio-icon {
    font-size: 16px;
    margin-right: 8px;
}

.audio-download {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.audio-download:hover {
    background: #5a6268;
    color: white;
}

.standard-audio-player {
    width: 100%;
    height: 40px;
    outline: none;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    .audio-container {
        padding: 12px;
        margin: 8px 0;
    }
    
    .audio-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .standard-audio-player {
        height: 35px;
    }
}

/* Ładny popup dla zapisywania notatki głosowej */
.voice-save-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 15px;
    padding: 30px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.voice-save-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.voice-save-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.voice-save-icon {
    font-size: 48px;
    color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #28a745;
}

.voice-save-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

/* Szary przycisk */
.gray-btn {
    background-color: #6c757d;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.85em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.gray-btn:hover {
    background-color: #5a6268;
}

/* Dodano styl dla przycisku dodawania pliku */
.add-file-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.add-file-btn:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}