/* Admin Dashboard Styling */





.clienthub-dashboard-card[data-premium="true"] {
    position: relative;
    opacity: 0.85;
}

.clienthub-dashboard-card .premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f0ad4e;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.clienthub-dashboard-card[data-premium="true"]:hover {
    opacity: 1;
    border: 2px solid #f0ad4e;
}




/* Compact table styling */
.clienthub-project-list-table.wp-list-table {
    margin-top: 15px;
}

.clienthub-project-list-table th, 
.clienthub-project-list-table td {
    padding: 8px 10px;
    line-height: 1.4;
}

/* Progress bar adjustments */
.clienthub-progress-bar-container {
    height: 16px !important; /* Reduced from 20px */
    margin: 2px 0;
}

.clienthub-progress-bar-container span {
    font-size: 11px !important;
    font-weight: 500;
}

/* Fixed column widths */
.column-progress {
    width: 120px; /* Fixed width for progress column */
}

.column-status {
    width: 100px;
}

.column-price_estimate {
    width: 110px;
}

.column-start_date,
.column-end_date {
    width: 100px;
}

.column-actions {
    width: 120px;
}

/* Summary footer */
.clienthub-client-summary {
    margin: 15px 0;
    padding: 10px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    font-size: 13px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .clienthub-project-list-table .column-actions {
        text-align: right;
        padding-right: 30px;
    }
    
    .clienthub-project-list-table .button {
        padding: 4px 8px;
        font-size: 12px;
    }
}


















.clienthub-stat-item:hover {
    border-color: #2271b1 !important;
    transform: translateY(-2px);
}


/* Reset WordPress wrap padding */
.wrap {
    padding: 20px;
}


.clienthub-dashboard-card {
	transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 25px;
    text-align: center;
    text-decoration: none;
}

.clienthub-dashboard-card:hover {
    border-color: #2271b1 !important;
	transform: translateY(-2px);
}



.clienthub-dashboard-card h3 {
    margin: 0;
    color: #1d2327;
    font-size: 14px;
}




.clienthub-admin-title {
    color: #0047b3;
    font-family: Monospaced;
    margin-bottom: 30px;
    font-weight:400;
}

.clienthub-dashboard-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.clienthub-stats-card,
.clienthub-quick-actions-card {
    position:relative;
    float:left;
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    min-width:400px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}




.clienthub-corner {
    position:relative;
    left:-25px;
    top:-40px;
    transform: rotate(45deg);
    width:40px;
    height:80px;
    background-color:#b3ecff;

}




.clienthub-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}



.clienthub-add-client-section {
    background: #fff;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.clienthub-add-client-section h2 {
    margin-top: 0;
    color: #1d2327;
}

.clienthub-add-client-section .form-table th {
    width: 200px;
}







/* Client List Table Styling */
.wp-list-table.widefat {
    margin-top: 20px;
    border-spacing: 0;
}

.wp-list-table th {
    font-weight: 600;
}

.wp-list-table td, .wp-list-table th {
    padding: 15px;
    line-height: 1.5;
}

.striped > tbody > :nth-child(odd) {
    background-color: #f6f7f7;
}











/* Edit Form Styling */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table select {
    width: 100%;
    max-width: 400px;
}

.form-table .description {
    display: block;
    margin-top: 5px;
    color: #666;
}


/* Optional: Add a more subtle red for less emphasis */
.clienthub-delete-button {
    background-color: #f8d7da !important; /* A lighter red */
    border-color: #ea4335 !important;
	color: black !important;
}

.clienthub-delete-button:hover {
    background-color: #ea4335 !important;
    border-color: #d32f2f !important;
	color: white !important;
}





.clienthub-client-summary {
    margin-top: 20px;
    padding: 10px;
    background: #ffffff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}



.clienthub-client-summary span {
    margin-left: 10px;
    padding: 2px 10px 4px 10px;
    border-left:1px solid #cecece;
}


.clienthub-progress-bar-container {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.clienthub-progress-bar {
    transition: width 0.5s ease-in-out;
}




/* Client Projects Card Styling */
.clienthub-client-projects-card {
    float:left;
    background: #ffffff;
    padding: 20px;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.clienthub-client-projects-card h3 {
    margin-top: 0;
    color: #1d2327;
    margin-bottom: 10px;
}

.clienthub-client-projects-card ul {
    list-style-type: disc; /* Or any other list style you prefer */
    margin-left: 20px;
    padding: 0;
}

.clienthub-client-projects-card li {
    margin-bottom: 5px;
}

.clienthub-client-projects-card li a {
    text-decoration: none; /* Remove underlines from links */
    color: #007bff; /* WordPress link color */
}

.clienthub-client-projects-card li a:hover {
    text-decoration: underline;
}





/* Messaging System Styles */
.clienthub-unread-badge {
    display: inline-block;
    background: #ca4a1f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
}

.clienthub-admin-conversation, 
.clienthub-conversation {
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

.clienthub-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 5px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.clienthub-admin-message {
    background: #e1f5fe;
    margin-left: auto;
    border-left: 3px solid #2196F3;
}

.clienthub-client-message {
    background: #f0f4c3;
    margin-right: auto;
    border-left: 3px solid #8BC34A;
}

.clienthub-message-meta {
    font-size: 0.8em;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.clienthub-conversation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.clienthub-message-form,
.clienthub-admin-message-form {
    margin-top: 20px;
}

.clienthub-message-form textarea,
.clienthub-admin-message-form textarea {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 10px;
}

.clienthub-send-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.clienthub-send-button:hover {
    background: #135e96;
}


.wp-die-message {
    background: #f8d7da;
    padding: 20px;
    border-left: 4px solid #dc3545;
    max-width: 600px;
    margin: 20px auto;
}








/* Statistics Grid */
.clienthub-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.clienthub-stat-item {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #dcdcde;
    display: flex;
    align-items: center;
}




.clienthub-stat-content {
    display: inline-block;
    margin-left: 15px;
}

.clienthub-stat-number {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    top: 3px;
}

/* Dashboard Grid */
.clienthub-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}



.clienthub-dashboard-card {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clienthub-dashboard-card:hover {
    border-color: #2271b1;
    transform: translateY(-2px);
}

.clienthub-dashboard-card .dashicons {
    font-size: 32px;
    width: auto;
    height: auto;
    margin-bottom: 5px;
    color: #2271b1;
}

.clienthub-stat-item .dashicons {
    font-size: 30px;
    width: 40px;
    margin-right: 30px;
    margin-bottom:15px;
    color: #2271b1;
	text-decoration: none;
}

.clienthub-dashboard-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}




/* Unified active state */
.clienthub-active-item {
    background: #f0f6ff !important;
    border-color: #2271b1 !important;
    position: relative;
}

.clienthub-active-item::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0px;
    height: 100%;
    width: 1px;
    background: #2271b1;
}

/* Statistics grid adjustments */
.clienthub-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}



/* Container for wider horizontal layout */
.clienthub-form-container {
    max-width: 1200px; /* Increased width */
    width: 100%;
    margin: 0 auto;
    
    box-sizing: border-box;
}

/* Full width on mobile */
@media (max-width: 782px) {
    .clienthub-form-container {
        max-width: 100%;
        padding: 10px;
        margin: 0;
    }
}

/* Form grid adjustments */
.clienthub-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.clienthub-full-width {
    grid-column: 1 / -1;
}

.clienthub-form-submit { padding-top:8px; }

/* Input field adjustments */
.clienthub-form-group input,
.clienthub-form-group select {
    width: 100%; /* Full width inputs */
    box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 782px) {
    .clienthub-form-grid {
        grid-template-columns: 1fr;
    }
    
    .clienthub-form-group {
        margin-bottom: 15px;
    }
}







/* Premium Modal Styles */
.clienthub-premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: clienthubFadeIn 0.3s ease;
}



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

.clienthub-premium-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: clienthubSlideIn 0.3s ease;
}

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

.clienthub-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    z-index: 10;
    transition: color 0.2s;
}

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

.clienthub-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
}

.clienthub-modal-header .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.clienthub-modal-header h2 {
    margin: 5px 0 15px 0; 
    color: #fff;
    font-size: 28px;
}

.clienthub-modal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clienthub-modal-content {
    padding: 30px;
}

.clienthub-feature-intro {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.clienthub-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clienthub-feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.clienthub-feature-list li:last-child {
    border-bottom: none;
}

.clienthub-feature-list .dashicons {
    color: #46b450;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.clienthub-modal-footer {
    background: #f9f9f9;
    padding: 25px 30px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.clienthub-modal-footer .button-hero {
    font-size: 16px;
    padding: 12px 30px;
    height: auto;
    line-height: 1.4;
    margin-bottom: 15px;
}

.clienthub-learn-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
    margin-top: 15px; 
    margin-left: 10px;
}


.clienthub-learn-more:hover {
    color: #764ba2;
}

/* Prevent body scroll when modal is open */
body.clienthub-modal-open {
    overflow: hidden;
}

/* Premium card hover effect enhancement */
.clienthub-dashboard-card[data-premium="true"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clienthub-dashboard-card[data-premium="true"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.3);
}




/* Version corner badge - positioned in top-right of admin menu area */
.clienthub-admin-menu {
    position: relative;
}

.clienthub-version-corner {
    position: absolute;
    top: -55px;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: monospace;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Responsive adjustment for smaller screens */
@media screen and (max-width: 782px) {
    .clienthub-version-corner {
        position: relative;
        top: 0;
        right: auto;
        display: inline-block;
        margin-bottom: 15px;
        float: right;
    }
    
    .clienthub-admin-menu {
        display: flex;
        flex-direction: column;
    }
}