/* --------------------------
   1) FONT-FACES (TTF for now)
   -------------------------- */
@font-face {
  font-family: 'Figtree';
  src: url('../font/Figtree-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Figtree';
  src: url('../font/Figtree-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Flight';
  src: url('../fonts/Flight.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Base Reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: #f0f0f0;
    color: #30363b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout Containers */
main {
    flex: 1;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

/* Header */
.header {
    font-family: 'Figtree', sans-serif;
    display: flex;
    background-color: #30363B;
    color: #fffc04;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 1.75rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.left-container, .middle-container, .right-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

img.logo {
    max-width: 225px;
    height: auto;
}

.floating-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.floating-toast.success {
    background-color: #28a745;
}

.floating-toast.error {
    background-color: #dc3545;
}

.floating-toast.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Progress Tracker */
.progress-wrapper {
    background: #fff;
    width: 91%;
    margin: 1rem auto 2rem;
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Figtree', sans-serif;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-family: 'Flight', sans-serif;
    font-size: 1.5rem;
}

.progress-percent {
    font-size: 0.9rem;
    color: #888;
}

.progress-bar {
    background-color: #e0e0e0;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    background-color: #30363b;
    height: 100%;
    transition: width 0.4s ease;
}

/* Current To-Do */

.client-todo {
    background-color: #fff9e6;
    border: 2px solid #fffc04;
    border-radius: 6px;
    padding: 20px;
    margin: 0rem 3rem 2rem 3rem;
}

.client-todo h3 {
    margin-top: 0;
    font-family: 'Figtree', sans-serif;
    color: #30363b;
}

.client-todo ul {
    margin: 0;
    padding-left: 20px;
}

.client-todo li {
    margin-bottom: 8px;
}


.review-instructions {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 960px;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.review-row p {
    flex: 1;
    margin: 0;
}

/* Stage List */
.stage-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 95%;
}

.stage-item {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Stage Number */
.stage-number {
    font-family: 'Figtree', sans-serif;
    background-color: #fffc04;
    color: #30363b;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    border: 10px solid #30363b;
    flex-shrink: 0;
}

/* Stage Content */
.stage-content {
    flex: 1;
}

.stage-title {
    font-family: 'Flight', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}

.stage-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 0.75rem;
}

/* Stage Details */
.stage-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.85rem;
    color: #333;
}

.stage-details div {
    min-width: 180px;
}

.stage-details div span {
    display: block;
    font-weight: bold;
    color: #888;
    margin-bottom: 0.25rem;
}


.stage-item.status-internal-review,
.stage-item.status-client-feedback-received {
    background-color: rgba(138, 164, 186, 0.15); 
    border-left: 6px solid #8aa4ba;
}


.stage-item.status-in-progress,
.stage-item.status-in-edit,
.stage-item.status-in-revision {
    background-color: rgba(80, 106, 133, 0.1); 
    border-left: 6px solid #506a85;
}



.stage-item.status-client-1st-review,
.stage-item.status-client-2nd-review,
.stage-item.status-awaiting-client {
    background-color: rgba(255, 156, 51, 0.1) !important; 
    border-left: 6px solid #FF9c33 !important;   
}

.stage-item.status-final-snagging {
    background-color: rgba(255, 156, 51, 0.1); /* Orange */
    border-left: 6px solid #FF9c33;    
}

.stage-item.status-handover {
    background-color: rgba(255, 221, 0, 0.15); /* Yellow */
    border-left: 6px solid #fffc04;    
}

.stage-item.status-complete,
.stage-item.status-signed-off {
    background-color: rgba(87, 198, 18, 0.1); /* Green */
    border-left: 6px solid #57c612;
}

.stage-item.status-scheduled {
    background-color: rgba(102, 153, 255, 0.08); /* Soft periwinkle blue */
    border-left: 6px solid #6699ff;
}

.stage-item[class*="status-not-required"] { 
    background-color: rgba(128, 128, 128, 0.1); /* Light grey background */
    border-left: 6px solid #808080; /* Solid grey border */
}


/* Any unclassified or "awaiting" status */
.stage-item[class*="status-awaiting"] {
    background-color: rgba(229, 0, 0, 0.1); /* Red */
    border-left: 6px solid #E50000;   
}

.stage-buttons {
    margin-top: 1em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.stage-buttons .btn {
    padding: 0.6em 1.2em;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    border: 2px solid black;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.btn-review {
    background-color: #fff92f;
    color: black;
}

.btn-review:hover {
    background-color: #fff200;
}

.btn-comment {
    background-color: #f4a261;
    color: black;
}

.btn-comment:hover {
    background-color: #e07a34;
}

.btn-signoff {
    background-color: #2a9d8f;
    color: white;
}

.btn-signoff:hover {
    background-color: #21867a;
}

.stage-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5em;
}

.stage-details {
    flex: 1 1 60%;
    min-width: 300px;
}

.stage-actions {
    flex: 1 1 35%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 250px;
}

.stage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    justify-content: flex-end;
}

.stage-buttons .btn {
    padding: 0.6em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    border: 2px solid #333;
}

.btn-review {
    background-color: #fff933;
}

.btn-comment {
    background-color: #f4a261;
}

.btn-signoff {
    background-color: #2a9d8f;
    color: #fff;
}

@media (max-width: 768px) {
    .stage-content {
        flex-direction: column;
    }

    .stage-actions {
        justify-content: flex-start;
        margin-top: 1em;
    }
}
/* Admin DB Styles */

/* Emoji key styling */
.emoji-key {
    margin: 20px 0;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.emoji-key span {
    background: #f1f5f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
}

.project-table {
    margin: 0;
    padding: 0 15px;
}

.feedback-note {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
    text-align: right;
    padding: 0 15px; 
}
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Figtree', sans-serif;
    background: #ffffff;
    border-radius: 5px;
}
th, td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #30363b;
}

tr:nth-child(even) {
    background-color: #f5f7fa;
}

td {
    transition: background-color 0.2s ease;
}

.status-warning {
    background-color: #fff2cc;
    color: #c60;
    font-weight: bold;
}
.status-overdue { 
    background-color: #ffcccc; 
    color: #900;
    font-weight: bold; 
}
.date {
    font-size: 11px; 
    color: #30363b;
    font-weight: bold;
}
/* Footer */
.footer {
    text-align: center;
    padding: 2px 0;
    background-color: #30363b;
    color: white;
    width: 100%;
    font-size: 14px;
    margin-top: 40px;
}

/* Responsive Tweak */
@media (max-width: 600px) {
    .stage-details {
        flex-direction: column;
        gap: 1rem;
    }

    .header {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .left-container, .middle-container {
        margin-bottom: 10px;
    }
}
