/**
 * Ultimate Member Project Roles - Frontend Styles
 * Version: 1.0.0
 */

/* Project Dashboard Styles */
.project-admin-dashboard,
.client-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-admin-dashboard h1,
.client-dashboard h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #2271b1;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Recent Projects Section */
.recent-projects {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.recent-projects h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

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

.project-list li {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

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

.project-list li:hover {
    background-color: #f9f9f9;
}

.project-list a {
    font-size: 16px;
    font-weight: 500;
    color: #2271b1;
    text-decoration: none;
}

.project-list a:hover {
    text-decoration: underline;
}

.project-date {
    color: #666;
    font-size: 14px;
}

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

.project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.project-card h3 a {
    color: #333;
    text-decoration: none;
}

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

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.project-meta .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status[data-status="planning"],
.project-meta .status:contains("planning") {
    background-color: #f0f0f0;
    color: #666;
}

.status[data-status="active"],
.project-meta .status:contains("active") {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status[data-status="on-hold"],
.project-meta .status:contains("on-hold") {
    background-color: #fff3e0;
    color: #e65100;
}

.status[data-status="completed"],
.project-meta .status:contains("completed") {
    background-color: #e3f2fd;
    color: #1565c0;
}

.status[data-status="cancelled"],
.project-meta .status:contains("cancelled") {
    background-color: #ffebee;
    color: #c62828;
}

.project-meta .date {
    color: #666;
}

.project-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-card .button {
    width: 100%;
    text-align: center;
}

/* Single Project Page */
.single-project .project-header {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.single-project .project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.single-project .detail-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.single-project .detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.single-project .detail-item span {
    font-size: 16px;
    color: #333;
}

/* Assigned Users List */
.assigned-users {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.assigned-users h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

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

.user-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

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

.user-list .avatar {
    margin-right: 15px;
    border-radius: 50%;
}

.user-list .user-info {
    flex: 1;
}

.user-list .user-name {
    font-weight: 600;
    color: #333;
}

.user-list .user-email {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state svg,
.empty-state img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Buttons */
.button-primary {
    background-color: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.button-primary:hover {
    background-color: #135e96;
    border-color: #135e96;
}

/* Notifications */
.project-notification {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}

.project-notification.success {
    background-color: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.project-notification.info {
    background-color: #e3f2fd;
    border-color: #1565c0;
    color: #0d47a1;
}

.project-notification.warning {
    background-color: #fff3e0;
    border-color: #e65100;
    color: #bf360c;
}

.project-notification.error {
    background-color: #ffebee;
    border-color: #c62828;
    color: #b71c1c;
}
