/* Moje Dokumenty - Frontend Styles */

.moje-dokumenty-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.status-column {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
}

.status-column h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.statuses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    cursor: default;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Status numer */
.status-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Status content */
.status-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.current {
    background: #28a745;
    color: white;
}

.status-badge.completed {
    background: #17a2b8;
    color: white;
}

.status-badge.available {
    background: #ffc107;
    color: #212529;
}

.status-badge.locked {
    background: #6c757d;
    color: white;
}

/* Status states */
.status-item.current-status {
    border: 4px solid #007cba !important;
    background: #17a2b8;
    box-shadow: 0 0 0 2px #007cba, 0 0 20px rgba(0, 124, 186, 0.3);
    position: relative;
    transform: scale(1.02);
}

.status-item.current-status .status-number {
    background: #28a745;
}

.status-item.completed-status {
    border-color: #17a2b8;
    background: #d1ecf1;
    cursor: pointer;
}

.status-item.completed-status:hover {
    border-color: #138496;
    background: #bee5eb;
}

.status-item.completed-status .status-number {
    background: #007cba;
}

.status-item.clickable-status {
    border-color: #17a2b8;
    background: #d1ecf1;
    cursor: pointer;
}

.status-item.clickable-status:hover {
    border-color: #17a2b8;
    background: #d1ecf1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.status-item.clickable-status .status-number {
    background: #007cba;
    color: white;
}

.status-item.locked-status {
    border-color: #6c757d;
    background: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
}

.status-item.locked-status .status-number {
    background: #6c757d;
}

.status-item.locked-status:hover {
    transform: none;
    box-shadow: none;
}

.status-item.available-status {
    border-color: #6c757d;
    background: #f8f9fa;
    cursor: default;
}

.status-item.available-status .status-number {
    background: #6c757d;
}

/* Hover effects */
.status-item.hover-effect {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Loading state */
.status-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.status-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.status-item p {
    margin: 5px 0;
    color: #666;
    font-size: 16px;
}

.user-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.dokumenty-column {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.moje-dokumenty {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.moje-dokumenty .status-info {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.moje-dokumenty .status-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #374151;
}

.dokumenty-lista {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dokument-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dokument-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dokument-item h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-title {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fbbf24;
}

.status-approved {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #10b981;
}

.status-revision {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
}

.status-signature {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #60a5fa;
}

.status-saved {
    background: #e0f2fe;
    color: #0277bd;
    border: 1px solid #4fc3f7;
}

.status-signed {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ba68c8;
}

.status-unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Style dla wrappera wypełnień */
.submission-item-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Style dla statusów w Multi Formularzach */
.submission-status {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
}

.submission-status .status-pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fbbf24;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-approved {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #10b981;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-revision {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-signature {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #60a5fa;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-saved {
    background: #e0f2fe;
    color: #0277bd;
    border: 1px solid #4fc3f7;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-signed {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ba68c8;
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-status .status-unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 2px 8px;
    border-radius: 3px;
}

.admin-notes {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.admin-notes p {
    margin: 0 0 8px 0;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-notes .notes-content {
    color: #4b5563;
    line-height: 1.5;
    font-size: 0.9rem;
}

.dokument-akcje {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.dokument-akcje .button[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

.dokument-akcje .button[title]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
}

.dokument-akcje .add-multi-submission {
    background: #28a745 !important;
}

.dokument-akcje .add-multi-submission:hover {
    background: #218838 !important;
}

.dokument-akcje .button:hover {
    background: #b91c1c;
    color: white;
}

.dokument-akcje .button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.dokument-akcje .button-warning {
    color: white !important;
}

.dokument-akcje .button-warning:hover {
    color: white !important;
}

.dokument-akcje .button-warning:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Modal Styles */
.modal-open {
    overflow: hidden;
}

.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.form-modal-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.form-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.form-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
}

.form-modal-close {
    background: #dc3545 !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    color: white !important;
    padding: 0 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-weight: bold !important;
    line-height: 1 !important;
    font-family: inherit !important;
    border-style: none !important;
    border-width: 0 !important;
    border-color: transparent !important;
}

.form-modal-close:hover {
    background: #c82333 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.form-modal-body {
    padding: 25px;
}

.form-modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.form-modal-content .error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 0;
}

/* Form Styles in Modal */
.form-modal-body .gform_wrapper {
    margin: 0;
    padding: 0;
}

.form-modal-body .gfield {
    margin-bottom: 20px;
    padding: 0;
}

.form-modal-body .gfield_label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-modal-body .gfield_required {
    color: #dc3545;
    font-weight: bold;
}

.form-modal-body .ginput_container {
    margin-top: 5px;
}

.form-modal-body input[type="text"],
.form-modal-body input[type="email"],
.form-modal-body input[type="tel"],
.form-modal-body input[type="number"],
.form-modal-body input[type="date"],
.form-modal-body input[type="url"],
.form-modal-body input[type="file"],
.form-modal-body textarea,
.form-modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-modal-body input:focus,
.form-modal-body textarea:focus,
.form-modal-body select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

.form-modal-body .gfield_radio,
.form-modal-body .gfield_checkbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-modal-body .gchoice {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-modal-body .gchoice input[type="radio"],
.form-modal-body .gchoice input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #0073aa;
}

.form-modal-body .gchoice label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

.form-modal-body .gform_footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.form-modal-body .gform_button {
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.form-modal .button-primary {
    font-size: 16px !important;
}

.form-modal-body .gform_button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.form-modal-body .gform_button:active {
    transform: translateY(0);
}

/* Submission Preview Styles */
.submission-preview {
    max-width: 100%;
}

.submission-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.submission-header h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.submission-date {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.submission-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-preview {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
}

.field-preview label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.field-preview .required {
    color: #dc3545;
    font-weight: bold;
}

.field-value {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    min-height: 20px;
    word-wrap: break-word;
}

/* Success/Error Messages */
.success-message, .error-message {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 15px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.error-message h3 {
    color: #721c24;
    margin-bottom: 15px;
}

.success-message .button, .error-message .button {
    margin-top: 20px;
}

/* Debug Info Hiding */
.debug-info,
div:contains("DEBUG INFO"),
p:contains("DEBUG INFO"),
span:contains("DEBUG INFO"),
div:contains("User ID: 288"),
div:contains("dev@it44.pl"),
div:contains("1113334446") {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.cancel-edit {
    font-size: 16px !important;
}

@media(max-width: 993px){
    .moje-dokumenty-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Style dla tabletów */
    .dokument-akcje .button {
        font-size: 13px !important;
        padding: 10px 14px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.3 !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .moje-dokumenty-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dokumenty-lista {
        grid-template-columns: 1fr;
    }
    
    .status-item {
        padding: 12px;
    }
    
    .user-badge {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
    
    .form-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .form-modal-header {
        padding: 15px 20px;
    }
    
    .form-modal-body {
        padding: 20px;
    }
    
    .form-modal-body input[type="text"],
    .form-modal-body input[type="email"],
    .form-modal-body input[type="tel"],
    .form-modal-body input[type="number"],
    .form-modal-body input[type="date"],
    .form-modal-body input[type="url"],
    .form-modal-body input[type="file"],
    .form-modal-body textarea,
    .form-modal-body select {
        padding: 10px 12px;
        font-size: 16px; /* Zapobiega zoom na iOS */
    }
}

/* Style dla przycisków PDF */
.submission-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.preview-submission {
    width: 100%;
    order: 3;
}

.pdf-download-btn {
    width: 100%;
    order: 2;
}

.signed-document-btn {
    width: 100%;
    order: 1;
}


/* Style dla wartości pól w podglądzie */
.preview-values {
    margin: 0;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    order: 1;
}

.preview-fields-values {
    color: #495057;
    margin-bottom: 4px;
}

.preview-field {
    display: inline-block;
    margin-right: 8px;
}

.preview-field strong {
    color: #6c757d;
    font-weight: 600;
}

.preview-fields-more {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
}

/* Responsywność dla przycisków PDF */
@media (max-width: 768px) {
    .submission-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .preview-values {
        order: 1;
        font-size: 12px;
        padding: 6px 10px;
        white-space: normal;
    }
    
    
    
    .preview-field {
        display: block;
        margin-bottom: 4px;
        margin-right: 0;
    }
    
    /* Responsywne style dla przycisków */
    .dokument-akcje .button {
        font-size: 12px !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.3 !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .dokument-akcje {
        gap: 8px;
    }
}

/* Dodatkowe style dla bardzo małych ekranów */
@media (max-width: 480px) {
    .dokument-akcje .button {
        font-size: 11px !important;
        padding: 6px 10px !important;
        min-height: 36px !important;
        line-height: 1.2 !important;
    }
    
    .dokument-akcje {
        gap: 6px;
    }
}


/* Style dla pola wrzucania plików */
.gf-field-file-upload {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gf-field-file-upload:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.gf-field-file-upload label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.gf-field-file-upload .required {
    color: #dc3545;
    font-weight: bold;
}

.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-container input[type="file"]:hover {
    border-color: #0073aa;
    background: #f8f9fa;
}

.file-upload-container input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.file-upload-info {
    margin-top: 8px;
}

.file-upload-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Style dla błędów walidacji */
.validation-errors-container {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 4px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
}

.validation-errors-container h4 {
    color: #721c24 !important;
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.validation-errors-container ul {
    margin: 0 !important;
    padding-left: 20px !important;
    color: #721c24 !important;
}

.validation-errors-container li {
    margin-bottom: 5px !important;
}

.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.validation-error {
    color: #dc3545 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
}

.moje-dokumenty .button {
    font-size: 14px;
}

/* Style dla przycisku "Wyślij do weryfikacji" */
.gf-verify-button {
    background-color: #28a745 !important;
    color: white !important;
    border: 1px solid #28a745 !important;
    margin: 0 5px !important;
}

.gf-verify-button:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Przycisk w prawym górnym rogu modala */
.gf-form-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.verification-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.gf-verify-button-header {
    font-size: 12px !important;
    padding: 6px 12px !important;
    margin: 0 !important;
    z-index: 10;
}

/* Style dla przycisku usuwania dokumentów */
.document-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.document-delete-btn {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.document-delete-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
    transform: scale(1.1) !important;
}

.document-delete-btn:disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Style dla blokady weryfikacji */
.gf-form-verified {
    opacity: 0.7;
    pointer-events: none;
}

/* Style dla modala potwierdzenia weryfikacji */
.verification-confirm-modal {
    max-width: 500px;
}

.verification-confirm-content {
    text-align: center;
    padding: 20px 0;
}

.verification-warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffc107;
}

.verification-confirm-text p {
    margin: 10px 0;
    line-height: 1.5;
}

.verification-confirm-text p:first-child {
    font-size: 18px;
    color: #dc3545;
    margin-bottom: 15px;
}

.verification-confirm-text p:last-child {
    font-size: 14px;
    color: #6c757d;
}

.form-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e1e1e1;
    background: #f8f9fa;
}

.form-modal-footer .gf-button {
    min-width: 80px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-modal-footer .gf-cancel-button {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.form-modal-footer .gf-cancel-button:hover {
    background: #5a6268;
    border-color: #545b62;
}

.form-modal-footer .gf-submit-button,
.form-modal-footer .gf-signed-document-submit {
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
}

.form-modal-footer .gf-submit-button:hover,
.form-modal-footer .gf-signed-document-submit:hover {
    background: #005a87;
    border-color: #004085;
}

/* Komunikat o braku formularzy */
.no-forms-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.no-forms-message p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

.verification-status-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-icon {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.verification-text {
    font-size: 16px;
    font-weight: 600;
    color: #155724;
    margin: 0;
}

.verification-subtext {
    font-size: 14px;
    color: #6c757d;
    margin: 4px 0 0 0;
}

.verification-info.verified {
    color: #28a745;
    font-weight: 600;
}

.gf-field.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.file-upload-info.disabled p {
    color: #6c757d;
    font-style: italic;
}

.document-item.verified {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.gf-button.disabled {
    background: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}