/* ===========================================
   LEGISLATIVO STYLES - Assembleia Legislativa do Paraná
   =========================================== */

.column-description {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e6f2f8 0%, #d9edf7 100%);
    border-left: 3px solid #447da6;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #31708f;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(68, 125, 166, 0.1);
}

.column-description i {
    font-size: 16px;
    color: #447da6;
    flex-shrink: 0;
}

.empty-state-column {
    text-align: center;
    padding: 40px 15px;
}

.empty-icon-column {
    font-size: 60px;
    color: #d0d7de;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-state-column h3 {
    color: #004c80;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-column p {
    color: #6c757d;
    font-size: 14px;
}

.card-legislativo {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-legislativo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #d0dae6;
}

.card-status-bar {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.status-open {
    background: linear-gradient(90deg, #5cb85c 0%, #4cae4c 100%);
}

.status-closed {
    background: linear-gradient(90deg, #004F89 0%, #003A54  100%);
}

.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.badge-success {
    background: #dff0d8;
    color: #3c763d;
}

.badge-blue {
    background: #d9edf7;
    color: #31708f;
}

.date-info {
    color: #1c1414;
    font-size: 12px;
    font-weight: 500;
}

.date-info i {
    margin-right: 3px;
}

.card-title {
    color: #003d5b;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
    flex-shrink: 0;
}

.card-meta-info {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.card-description {
    color: #1c1414;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
}


.btn-details {
    background: #fff;
    color: #555;
    border: 2px solid #ddd;
}

.btn-details:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
    transform: translateY(-2px);
}

.btn-contribute {
    color: #fff;
}

.btn-contribute:hover {
    box-shadow: 0 4px 12px rgba(68, 125, 166, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-document {
    background: linear-gradient(135deg, #5bc0de 0%, #46b8da 100%);
    color: #fff;
    border: none;
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.btn-document:hover {
    background: linear-gradient(135deg, #46b8da 0%, #31b0d5 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(91, 192, 222, 0.3);
}

.card-collapse-custom {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-details-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e1e8ed;
}

.card-details-content h4 {
    color: #447da6;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.details-text {
    color: #555;
    font-size: 13px;
    line-height: 1.7;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.empty-icon {
    font-size: 70px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #447da6;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: #777;
    font-size: 15px;
}

/* MODAL STYLES */
.legislativo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    animation: legislativoModalFadeIn 0.3s ease;
}

.legislativo-modal-overlay.legislativo-modal-active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@keyframes legislativoModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.legislativo-modal-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    animation: legislativoModalSlideDown 0.3s ease;
}

@keyframes legislativoModalSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.legislativo-modal-content {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.legislativo-modal-header {
    background: linear-gradient(135deg, #003A54 0%, #004F89  100%);
    color: #fff;
    padding: 18px 20px;
    position: relative;
}

.legislativo-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.legislativo-modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.legislativo-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.legislativo-modal-codigo-title {
    margin: 6px 0 0;
    opacity: 0.95;
    font-size: 13px;
    color: #fff;
}

.legislativo-modal-body {
    padding: 20px;
}

.legislativo-form-group {
    margin-bottom: 20px;
}

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

.legislativo-required {
    color: #d9534f;
}

.legislativo-radio-cards {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.legislativo-radio-card-item {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.legislativo-radio-card-item input[type="radio"] {
    display: none;
}

.legislativo-radio-card-box {
    padding: 20px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.legislativo-radio-card-box i {
    font-size: 32px;
    color: #777;
    display: block;
    margin-bottom: 10px;
}

.legislativo-radio-card-box span {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box {
    background: #e6f2f8;
    border-color: #447da6;
}

.legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box i {
    color: #447da6;
}

.legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box span {
    color: #447da6;
}

.legislativo-radio-card-box:hover {
    border-color: #bbb;
    background: #f0f0f0;
}

.legislativo-form-control {
    width: 100%;
    box-sizing: border-box;
}

.legislativo-input-custom,
.legislativo-textarea-custom {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.legislativo-input-custom:focus,
.legislativo-textarea-custom:focus {
    border-color: #447da6;
    box-shadow: 0 0 0 3px rgba(68, 125, 166, 0.1);
    outline: none;
}

.legislativo-textarea-custom {
    resize: vertical;
    min-height: 140px;
}

.legislativo-help-block {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.legislativo-char-counter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.legislativo-char-counter {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    transition: color 0.3s ease;
}

.legislativo-char-counter.legislativo-counter-warning {
    color: #f0ad4e;
}

.legislativo-char-counter.legislativo-counter-danger {
    color: #d9534f;
}

.legislativo-char-counter.legislativo-counter-success {
    color: #5cb85c;
}

.legislativo-text-center {
    text-align: center;
}

.legislativo-modal-footer-custom {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    margin-top: 20px;
}

.legislativo-btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.legislativo-btn-cancel {
    background: #777;
    color: #fff;
}

.legislativo-btn-cancel:hover {
    background: #5e5e5e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(119, 119, 119, 0.3);
}

.legislativo-btn-submit {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: #fff;
}

.legislativo-btn-submit:hover {
    background: linear-gradient(135deg, #4cae4c 0%, #449d44 100%);
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
    color: #fff;
}

.legislativo-swal-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    padding: 20px 0 !important;
}

.legislativo-swal-text {
    font-size: 18px !important;
    line-height: 1.6 !important;
    padding: 10px 0 !important;
}

.legislativo-swal-button {
    font-size: 16px !important;
    padding: 12px 40px !important;
    font-weight: 600 !important;
}

/* ===========================================
   DARK MODE STYLES - LEGISLATIVO
   =========================================== */

.dark-mode .column-description {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e3a8a 100%) !important;
    border-left-color: #60a5fa !important;
    color: #93c5fd !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.dark-mode .column-description i {
    color: #93c5fd !important;
}

/* Empty states */
.dark-mode .empty-state-column {
    background: transparent !important;
}

.dark-mode .empty-icon-column {
    color: #4b5563 !important;
}

.dark-mode .empty-state-column h3 {
    color: #93c5fd !important;
}

.dark-mode .empty-state-column p {
    color: #9ca3af !important;
}

/* Cards */
.dark-mode .card-legislativo {
    background: #1f2225 !important;
    border-color: #3a3d40 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .card-legislativo:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4) !important;
    border-color: #4b5563 !important;
}

/* Status bars mantém as cores originais para identificação */
.dark-mode .status-open {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%) !important;
}

.dark-mode .status-closed {
    background: linear-gradient(90deg, #1e40af 0%, #1e3a8a 100%) !important;
}

.dark-mode .card-content {
    background: #1f2225 !important;
}

/* Badges */
.dark-mode .badge-success {
    background: #166534 !important;
    color: #bbf7d0 !important;
}

.dark-mode .badge-blue {
    background: #1e40af !important;
    color: #93c5fd !important;
}

.dark-mode .date-info {
    color: #9ca3af !important;
}

.dark-mode .card-title {
    color: #3b82f6 !important;
}

.dark-mode .card-description {
    color: #d1d5db !important;
}

/* Botões dos cards */
.dark-mode .btn-details {
    background: #374151 !important;
    color: #e5e5e5 !important;
    border-color: #4b5563 !important;
}

.dark-mode .btn-details:hover {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
    color: #f9fafb !important;
}

.dark-mode .btn-contribute {
    background: #111315 !important;
}

.dark-mode .btn-contribute:hover {
    background: #000000 !important;
    box-shadow: 0 4px 12px rgba(7, 11, 22, 0.5) !important;
}

.dark-mode .btn-document {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
}

.dark-mode .btn-document:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    box-shadow: 0 4px 14px rgba(2,132,199,0.45) !important;
}

/* Detalhes expandidos do card */
.dark-mode .card-details-content {
    border-top-color: #3a3d40 !important;
}

.dark-mode .card-details-content h4 {
    color: #93c5fd !important;
}

.dark-mode .details-text {
    color: #d1d5db !important;
}

/* Empty state geral */
.dark-mode .empty-state {
    background: #232628 !important;
    border-color: #3a3d40 !important;
}

.dark-mode .empty-icon {
    color: #4b5563 !important;
}

.dark-mode .empty-state h3 {
    color: #93c5fd !important;
}

.dark-mode .empty-state p {
    color: #9ca3af !important;
}

/* MODAL STYLES - DARK MODE */
.dark-mode .legislativo-modal-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

.dark-mode .legislativo-modal-content {
    background: #232628 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .legislativo-modal-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
}

.dark-mode .legislativo-modal-close {
    color: #e5e5e5 !important;
}

.dark-mode .legislativo-modal-close:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .legislativo-modal-title,
.dark-mode .legislativo-modal-codigo-title {
    color: #f9fafb !important;
}

.dark-mode .legislativo-modal-body {
    background: #232628 !important;
}

/* Formulários - Dark Mode */
.dark-mode .legislativo-control-label {
    color: #e5e5e5 !important;
}

.dark-mode .legislativo-required {
    color: #f87171 !important;
}

.dark-mode .legislativo-radio-card-box {
    background: #1f2225 !important;
    border-color: #3a3d40 !important;
}

.dark-mode .legislativo-radio-card-box i {
    color: #9ca3af !important;
}

.dark-mode .legislativo-radio-card-box span {
    color: #d1d5db !important;
}

.dark-mode .legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box {
    background: #1e3a5f !important;
    border-color: #60a5fa !important;
}

.dark-mode .legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box i {
    color: #60a5fa !important;
}

.dark-mode .legislativo-radio-card-item input[type="radio"]:checked + .legislativo-radio-card-box span {
    color: #93c5fd !important;
}

.dark-mode .legislativo-radio-card-box:hover {
    border-color: #4b5563 !important;
    background: #374151 !important;
}

/* Inputs e textareas */
.dark-mode .legislativo-input-custom,
.dark-mode .legislativo-textarea-custom {
    background: #1f2225 !important;
    border-color: #3a3d40 !important;
    color: #e5e5e5 !important;
}

.dark-mode .legislativo-input-custom::placeholder,
.dark-mode .legislativo-textarea-custom::placeholder {
    color: #6b7280 !important;
}

.dark-mode .legislativo-input-custom:focus,
.dark-mode .legislativo-textarea-custom:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
}

.dark-mode .legislativo-help-block {
    color: #9ca3af !important;
}

.dark-mode .legislativo-char-counter {
    color: #9ca3af !important;
}

.dark-mode .legislativo-char-counter.legislativo-counter-warning {
    color: #fbbf24 !important;
}

.dark-mode .legislativo-char-counter.legislativo-counter-danger {
    color: #f87171 !important;
}

.dark-mode .legislativo-char-counter.legislativo-counter-success {
    color: #4ade80 !important;
}

/* Footer do modal */
.dark-mode .legislativo-modal-footer-custom {
    border-top-color: #3a3d40 !important;
}

.dark-mode .legislativo-btn-cancel {
    background: #4b5563 !important;
    color: #e5e5e5 !important;
}

.dark-mode .legislativo-btn-cancel:hover {
    background: #6b7280 !important;
    box-shadow: 0 4px 15px rgba(75, 85, 99, 0.5) !important;
}

.dark-mode .legislativo-btn-submit {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

.dark-mode .legislativo-btn-submit:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5) !important;
}

/* SweetAlert em dark mode */
.dark-mode .swal2-popup {
    background: #232628 !important;
    color: #e5e5e5 !important;
}

.dark-mode .swal2-title {
    color: #f9fafb !important;
}

.dark-mode .swal2-html-container {
    color: #d1d5db !important;
}

@media (max-width: 480px) {
    .dark-mode .legislativo-modal-content {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7) !important;
    }
}

/* ===========================================
   MOTION REDUCED - LEGISLATIVO
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    .card-legislativo,
    .btn-details,
    .btn-contribute,
    .btn-document,
    .legislativo-radio-card-box,
    .legislativo-input-custom,
    .legislativo-textarea-custom,
    .dark-mode {
        transition: none !important;
        animation: none !important;
    }
    
    @keyframes legislativoModalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes legislativoModalSlideDown {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .column-description {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
        margin-bottom: 12px;
    }

    .column-description i {
        font-size: 14px;
    }

    .card-legislativo {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .card-content {
        padding: 12px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .card-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .date-info {
        font-size: 11px;
    }

    .card-actions {
        flex-direction: column;
        gap: 6px;
    }

    .btn-details,
    .btn-contribute {
        width: 100%;
        min-width: auto;
        padding: 10px 14px;
        font-size: 13px;
    }

    .card-details-content h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .details-text {
        font-size: 12px;
    }

    .empty-state-column {
        padding: 30px 15px;
    }

    .empty-icon-column {
        font-size: 50px;
        margin-bottom: 12px;
    }

    .empty-state-column h3 {
        font-size: 16px;
    }

    .empty-state-column p {
        font-size: 13px;
    }

    .legislativo-modal-container {
        margin: 15px auto;
    }

    .legislativo-modal-overlay {
        padding: 8px;
    }

    .legislativo-modal-header {
        padding: 15px;
    }

    .legislativo-modal-title {
        font-size: 18px;
    }

    .legislativo-modal-body {
        padding: 15px;
    }

    .legislativo-radio-cards {
        flex-direction: column;
        gap: 10px;
    }

    .legislativo-radio-card-box {
        padding: 15px;
    }

    .legislativo-radio-card-box i {
        font-size: 28px;
    }

    .legislativo-input-custom,
    .legislativo-textarea-custom {
        padding: 10px 12px;
        font-size: 14px;
    }

    .legislativo-modal-footer-custom {
        flex-direction: column-reverse;
        gap: 8px;
        padding-top: 15px;
        margin-top: 15px;
    }

    .legislativo-btn-cancel,
    .legislativo-btn-submit {
        width: 100%;
        padding: 11px 20px;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }

    .legislativo-swal-title {
        font-size: 20px !important;
    }

    .legislativo-swal-text {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {

    .column-description {
        padding: 7px 10px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .card-content {
        padding: 10px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-description {
        font-size: 12px;
    }

    .date-info {
        font-size: 10px;
    }

    .btn-details,
    .btn-contribute {
        padding: 9px 12px;
        font-size: 12px;
    }

    .legislativo-modal-header {
        padding: 12px;
    }

    .legislativo-modal-title {
        font-size: 16px;
    }

    .legislativo-modal-body {
        padding: 12px;
    }

    .legislativo-radio-card-box {
        padding: 12px;
    }

    .legislativo-radio-card-box i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .legislativo-radio-card-box span {
        font-size: 13px;
    }

    .legislativo-input-custom,
    .legislativo-textarea-custom {
        padding: 9px 11px;
        font-size: 13px;
    }

    .legislativo-control-label {
        font-size: 13px;
    }

    .legislativo-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .g-recaptcha {
        transform: scale(0.8);
    }

    .legislativo-swal-title {
        font-size: 18px !important;
    }

    .legislativo-swal-text {
        font-size: 14px !important;
    }

    .legislativo-swal-button {
        font-size: 13px !important;
        padding: 9px 25px !important;
    }

    .legislativo-char-counter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .legislativo-help-block,
    .legislativo-char-counter {
        font-size: 11px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-icon {
        font-size: 60px;
    }

    .empty-state h3 {
        font-size: 18px;
    }

    .empty-state p {
        font-size: 13px;
    }
}

/* ===========================================
   SWEETALERT FIX - DARK MODE
   =========================================== */

   .dark-mode .swal2-icon {
    border-color: #4ade80 !important;
}

.dark-mode .swal2-success .swal2-success-ring {
    border: none !important;
}

.dark-mode .swal2-success-line-tip,
.dark-mode .swal2-success-line-long {
    background-color: #4ade80 !important;
}

/* Remove aquele fundo branco bugado */
.dark-mode .swal2-success .swal2-success-fix {
    background: transparent !important;
}

/* Corrige animação circular */
.dark-mode .swal2-success-circular-line-left,
.dark-mode .swal2-success-circular-line-right {
    background: transparent !important;
}

body > .swal2-container {
    z-index: 999999 !important;
}