/* Projects Modal */
.projects-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.projects-modal.active {
    display: flex;
}

.projects-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.projects-modal__container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

/* Floating Particles Background */
.projects-modal__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.projects-modal__close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.projects-modal__close svg {
    width: 20px;
    height: 20px;
}

.projects-modal__content {
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

/* Steps Progress */
.projects-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.projects-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.step__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.step--active .step__number {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step--active .step__label {
    color: #fff;
    font-weight: 600;
}

.step--completed .step__number {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #fff;
}

.step--completed .step__number::after {
    content: '✓';
    position: absolute;
}

.step--completed .step__label {
    color: #10b981;
}

/* Panels */
.projects-panel {
    display: none;
}

.projects-panel--active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-panel__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.projects-panel__subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

/* Form Styles */
.project-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.form-select option:disabled {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn--primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn--full {
    width: 100%;
}

/* Payment Panel */
.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.payment-summary__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-amount {
    font-size: 1.5rem;
    color: #10b981;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-btn {
    padding: 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Status Panel */
.status-success {
    text-align: center;
    margin-bottom: 2rem;
}

.status-success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.status-success__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.status-success__message {
    color: rgba(255, 255, 255, 0.6);
}

.project-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.project-status-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-status-card__header h3 {
    color: #fff;
    font-size: 1.25rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge--progress {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
}

.project-status-card__body p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-modal__content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-steps {
        gap: 0.5rem;
    }

    .step__label {
        font-size: 0.75rem;
    }

    .step__number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}


/* Project Overview Cards */
.projects-overview {
    margin-bottom: 2rem;
}

.projects-overview__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-card__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.stat-card__glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-card__glow {
    opacity: 1;
}

/* Tabs */
.projects-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.projects-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 12px 12px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.projects-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.projects-tab--active {
    color: #fff;
    background: rgba(99, 102, 241, 0.1);
}

.projects-tab--active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.projects-tab__badge {
    display: none;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    transition: all 0.3s ease;
}

.projects-tab--active .projects-tab__badge {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Tab Panels */
.projects-tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
}

.tab-panel--active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Project Cards List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.projects-list::-webkit-scrollbar {
    width: 6px;
}

.projects-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.projects-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateX(4px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.project-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.project-card__type {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.project-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state__text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.empty-state__action {
    margin-top: 1.5rem;
}

/* Visual Flow Diagram */
.project-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-flow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.project-flow__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.project-flow__step--highlight .project-flow__icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.project-flow__step--success .project-flow__icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.project-flow__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.project-flow__label small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

.project-flow__arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.action-btn__icon {
    width: 20px;
    height: 20px;
}

/* Badge Pulse Animation */
.badge-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Gradient Text with Shimmer */
.gradient-text {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text.shimmer {
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Responsive Updates */
@media (max-width: 768px) {
    .projects-modal__container {
        max-width: 100%;
    }

    .projects-overview__stats {
        grid-template-columns: 1fr;
    }

    .projects-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .projects-tab {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .project-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .project-flow__arrow {
        transform: rotate(90deg);
    }
}


/* Additional Status Badge Styles */
.status-badge--success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge--draft {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Projects Overview Header */
.projects-overview__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.projects-overview__header .projects-panel__title {
    margin-bottom: 0;
}

/* Smooth transitions for view switching */
.projects-panel {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-panel:not(.projects-panel--active) {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}


/* Email Notification Banner */
.email-notification-banner {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-notification-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerSlide 3s infinite;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.email-notification-banner__icon {
    position: relative;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.email-notification-banner__icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.email-notification-banner__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.email-notification-banner__content {
    flex: 1;
}

.email-notification-banner__title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-notification-banner__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .email-notification-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .email-notification-banner__icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .email-notification-banner__icon svg {
        width: 24px;
        height: 24px;
    }
}


/* Project Card Email Reminder */
.project-card__email-reminder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(99, 102, 241, 0.9);
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-card__email-reminder svg {
    width: 14px;
    height: 14px;
    color: #6366f1;
    animation: emailPulse 2s ease-in-out infinite;
}

@keyframes emailPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.project-card__email-reminder span {
    font-weight: 500;
}


.project-card--draft {
    border: 2px dashed rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.project-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card__btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card__btn--pay {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.project-card__btn--pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.project-card__btn--delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.project-card__btn--delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}
