/* Client Dashboard Styles */
.tb-client-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tb-back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}

.tb-back-link:hover {
    color: #135e96;
}

/* Projects Grid */
.tb-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tb-project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tb-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tb-project-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.tb-project-card h3 a {
    text-decoration: none;
    color: #1d2327;
}

.tb-project-card h3 a:hover {
    color: #2271b1;
}

.tb-project-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tb-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tb-due-date {
    color: #666;
    font-size: 0.9em;
}

.tb-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.tb-status-pending {
    background: #fff0f0;
    color: #d63638;
    border: 1px solid #d63638;
}

.tb-status-in_progress {
    background: #f0f6fc;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.tb-status-done {
    background: #f0f8f0;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.tb-no-projects {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Single Project View */
.tb-project-single {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tb-project-content {
    margin: 20px 0;
    line-height: 1.6;
}

.tb-project-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
}

.tb-detail {
    font-size: 1em;
}

.tb-admin-notes {
    margin: 25px 0;
    padding: 20px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.tb-admin-notes h3 {
    margin-top: 0;
    color: #2271b1;
}

/* Notes Section */
.tb-client-notes-section {
    margin-top: 30px;
}
.tb-client-notes-section h3 {
    text-align: center;
    margin: 40px 0;
}

.tb-notes-list {
    margin: 20px 0;
}

.tb-note-item {
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.tb-note-current-user {
    background: #f9f9f9e3;
}

.tb-note-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding: 0 0 10px 0;
}

.tb-note-text {
    line-height: 1.5;
    margin-bottom: 10px;
}

.tb-no-notes {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Note Form */
.tb-note-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
}

.tb-note-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.tb-note-text {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.tb-file-upload {
    margin: 0 0 15px 0;
    display: inline-block;
    width: 100%;
}
.tb-file-upload p {
    margin: 0;
}

.tb-file-input-wrapper {
    margin-top: 10px;
}

.tb-add-note-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.tb-add-note-btn:hover:not(:disabled) {
    background: #135e96;
}

.tb-add-note-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.tb-upload-status {
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 20px;
}

/* Note Attachments */
.tb-note-attachments {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tb-attachment {
    margin: 5px 0;
}

.tb-attachment a {
    text-decoration: none;
    color: #2271b1;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Lightbox styles */
.tb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.tb-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.tb-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tb-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.tb-lightbox-close:hover {
    opacity: 1;
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Login Form */
.tb-login-wrap {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tb-login-wrap h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tb-projects-grid {
        grid-template-columns: 1fr;
    }

    .tb-project-details {
        grid-template-columns: 1fr;
    }

    .tb-project-single {
        padding: 20px;
    }

    .tb-client-dashboard {
        padding: 10px;
    }
}







/* Multiple file upload styles */
.tb-file-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

.tb-selected-files-list {
    background: #f9f9f9;
    padding: 20px 30px;
    border: 1px solid #ddd;
}

.tb-selected-files-list ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.tb-selected-files-list li {
    margin-bottom: 3px;
    word-break: break-all;
}

/* Attachment thumbnails */
.tb-attachment-image {
    display: inline-block;
    margin: 5px 10px 5px 0;
}

.tb-thumbnail {
    max-width: 100px;
    max-height: 100px;
    border-radius: 0;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.tb-thumbnail:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tb-thumbnail {
        max-width: 80px;
        max-height: 80px;
    }
}
.tb-project-gallery-frontend {
    border-top: 1px solid #f4f4f4;
    margin-top: 40px;
    padding: 20px 0 0;
}
.tb-project-gallery-frontend .tb-gallery-grid {
    display: inline-block;
    width: 100%;
    margin: 10px -10px 0;
}
.tb-gallery-item {
    display: inline-block;
    padding: 10px;
    float: left;
}
input.tb-attach-file-toggle {
    margin-right: 15px;
}

.tb-selected-file-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
.tb-file-icon {
    margin: 0 15px;
}
button.tb-remove-file {
    line-height: 24px!important;
    height: 24px;
    width: 24px;
    padding: 3px!important;
    background: #333333;
    margin: 0!important
}
button.tb-clear-all-files {
    background: #333333;
    padding: 5px 15px !important;
    height: 25px;
    line-height: 1em !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7em;
}
button.tb-clear-all-files:hover {
  background: #e12828;
  -webkit-transition: .2s;
  -moz-transition: .2s;
  -o-transition: .2s;
  -ms-transition: .2s;
  transition: .2s;
}
.tb-selected-files-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tb-attachment .tb-document-icon {
    display: flex;
    align-items: center;
}
