/* Modal Container */
.pillar-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Modal Content */
.pillar-modal .modal-content {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    max-width: 900px !important;
}

/* Modal Header */
.modal-header {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 20px 24px !important;
    border-radius: 12px 12px 0 0 !important;
}

.modal-header h2 {
    color: #1a1a1a !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

/* Close Button */
.close-modal {
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}

.close-modal:hover {
    background: #f3f4f6 !important;
    color: #1a1a1a !important;
}

/* Tabs */
.tab-nav {
    background: #f9fafb !important;
    padding: 0 24px !important;
    gap: 8px !important;
}

.tab-button {
    color: #666 !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s !important;
    border: none !important;
}

.tab-button:hover {
    color: #2563eb !important;
    background: #f3f4f6 !important;
}

.tab-button.active {
    color: #fff !important;
    background: #3498db !important;
}

/* Content Area */
.tab-content {
    padding: 24px !important;
}

/* Details Grid */
.details-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.detail-row {
    background: #fff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.detail-row label {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

/* Task Sections */
.task-section {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.task-section h3 {
    color: #1a1a1a !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Task Items */
.task-items {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 12px !important;
}

.task-item {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
}

/* Signatures */
.signatures-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    padding: 20px !important;
}

.signature-section {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 20px !important;
}

.signature-section h3 {
    color: #1a1a1a !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
}

/* Footer */
.modal-footer {
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 20px 24px !important;
    border-radius: 0 0 12px 12px !important;
}

/* Buttons */
.modal-footer .button {
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    min-width: 120px !important;
    transition: all 0.2s !important;
}

.modal-footer .close-modal {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
}

.modal-footer .close-modal:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.modal-footer .export-pdf {
    background: #3498db !important;
    border: none !important;
    color: #fff !important;
}

.modal-footer .export-pdf:hover {
    background: #2980b9 !important;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .pillar-modal .modal-content {
        margin: 0 !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    .details-grid,
    .signatures-container {
        grid-template-columns: 1fr !important;
    }

    .tab-button {
        padding: 12px 16px !important;
    }

    .modal-footer {
        flex-direction: column-reverse !important;
        gap: 12px !important;
    }

    .modal-footer .button {
        width: 100% !important;
    }
}

/* Export button styling */
.pillar-modal .export-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pillar-modal .export-pdf:hover {
    background-color: #135e96;
}

.pillar-modal .export-pdf .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Modal footer spacing */
.pillar-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #ddd;
}

/* Hide admin-only elements in dashboard */
body:not(.wp-admin) .admin-only {
    display: none !important;
}

/* Hide dashboard-only elements in admin */
.wp-admin .dashboard-only {
    display: none !important;
} 