/**
 * Frontend Task Dashboard Styles
 */

.pt-task-dashboard-frontend {
    max-width: 100%;
    overflow-x: auto;
}

.pt-hours {
	padding:10px;
	border-radius:5px;
	color:#3a3a3b;
	width:200px;
	font-size:1.2rem;
}
.pt-hours input {
	padding:10px;
	font-size:1.2rem;
	width:120px;
}

.rubric {
	color:#383848;
}

select {
	padding:10px;
	border-radius:5px;
	color:#3a3a3b;
	width:200px;
	font-size:1.2rem;
}

.pt-tasks-table-frontend {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.pt-tasks-table-frontend th,
.pt-tasks-table-frontend td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #c3c4c7;
}

.pt-tasks-table-frontend th {
    background: #fff;
    font-weight: 600;
}

.pt-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-todo { background: #f0f0f1; color: #3c434a; }
.status-in_progress { background: #c5d9ed; color: #1d4ed8; }
.status-done { background: #c6e1c6; color: #5b841b; }
.status-blocked { background: #f1c6c6; color: #8b1e1e; }

/* Summary cards for frontend */
.pt-summary-cards {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pt-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pt-card-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    line-height: 1;
    margin-bottom: 5px;
}

.pt-card-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters */
.pt-filters {
    margin: 20px 0;
}

/* Overdue styling */
.pt-overdue {
    background: #fcf0f1 !important;
}

.pt-overdue-badge {
    display: inline-block;
    background: #d63638;
    color: #3a3a3b;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Task done styling */
.pt-task-done {
    opacity: 0.7;
}

.pt-task-done td:first-child {
    text-decoration: line-through;
}

/* No tasks message */
.pt-no-tasks {
    text-align: center;
    padding: 40px;
    color: #646970;
}   

/**
 * Evidence Modal Styles
 */

.pt-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    overflow-y: auto;
}

.pt-modal-content-body h1 {
    color: blue;
    margin-top: 1rem;
}

..pt-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pt-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.pt-modal-close:hover {
    color: #000;
}

.pt-modal-header {
    border-bottom: 2px solid #e2e4e7;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pt-modal-title {
	font-size:1rem;
}

.pt-evidence-modal-trigger {
	color:#fff;
}

.pt-modal-body {
    font-size: 16px;
    line-height: 1.7;
}

.pt-modal-body iframe,
.pt-modal-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .pt-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
/* ============================================
   MODAL STYLES - Portfolio Timeline
   ============================================ */

/* Overlay - dark background behind modal */
.pt-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    overflow-y: auto;
    backdrop-filter: blur(3px); /* Nice blur effect */
}

/* Modal container - the white box */
.pt-modal-container {
    background: #fff;
    margin: 5% auto;
    padding: 0; /* Remove padding, handle inside */
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Close button */
.pt-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pt-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

/* Header section */
.pt-modal-header {
    background: #f8f9fa;
    padding: 25px 40px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.pt-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
    padding-right: 50px; /* Space for close button */
}

/* Body section - where content loads */
.pt-modal-body {
    padding: 30px 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #3c434a;
}

/* Loading text */
.pt-modal-loading {
    text-align: center;
    color: #646970;
    font-style: italic;
    padding: 40px;
}

/* ============================================
   LOADED CONTENT STYLES
   Fix white-on-white and big headers
   ============================================ */

/* Wrapper for loaded content */
.pt-content-loaded {
    /* Ensure text is visible */
    color: #3c434a !important;
}

/* Fix big headers from loaded content */
.pt-content-loaded h1,
.pt-content-loaded h2,
.pt-content-loaded h3,
.pt-content-loaded h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    line-height: 1.4;
}

.pt-content-loaded h1 {
    font-size: 1rem; /* Reduce from theme's huge size */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.pt-content-loaded h2 {
    font-size: 1rem;
}

.pt-content-loaded h3 {
    font-size: 1rem;
    color: #2271b1;
}

/* Fix white text on white background */
.pt-content-loaded,
.pt-content-loaded p,
.pt-content-loaded div,
.pt-content-loaded span,
.pt-content-loaded li {
    color: #3c434a !important;
    background: transparent !important;
}

/* But keep links colored */
.pt-content-loaded a {
    color: #2271b1 !important;
    text-decoration: underline;
}

.pt-content-loaded a:hover {
    color: #135e96 !important;
}

/* Fix any white backgrounds in content */
.pt-content-loaded div[style*="background: white"],
.pt-content-loaded div[style*="background:#fff"],
.pt-content-loaded div[style*="background-color: white"],
.pt-content-loaded div[style*="background-color:#fff"] {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
}

/* Images and media */
.pt-content-loaded img,
.pt-content-loaded iframe,
.pt-content-loaded video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Lists */
.pt-content-loaded ul,
.pt-content-loaded ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.pt-content-loaded li {
    margin-bottom: 10px;
}

/* Blockquotes */
.pt-content-loaded blockquote {
    border-left: 4px solid #2271b1;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f0f6fc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Tables */
.pt-content-loaded table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.pt-content-loaded th,
.pt-content-loaded td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.pt-content-loaded th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pt-modal-container {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }
    
    .pt-modal-header {
        padding: 20px;
    }
    
    .pt-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .pt-modal-body {
        padding: 20px;
    }
    
    .pt-content-loaded h1 {
        font-size: 1.4rem;
    }
}

.pf {
	color:#fff;
}

/* Force Gantt to fill available space */
.pt-gantt-wrapper {
    width: 100% !important;
    min-height: 500px !important; /* or 60vh */
}

.pt-gantt-wrapper > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
}

/* Fix Frappe Gantt internal sizing */
.gantt-container {
    width: 100% !important;
    height: auto !important;
    min-height: 500px !important;
}

.gantt .bar-wrapper {
    height: 30px !important; /* Ensure bars are visible */
}