/* Vendor Project Management - Single Color Professional Theme v1.5.0 */

/* Primary Color Scheme - Professional Blue */
:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --primary-lighter: #93C5FD;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Container */
.vpm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Forms - Registration, Login, Password */
.vpm-registration-form,
.vpm-login-form,
.vpm-forgot-password-form,
.vpm-reset-password-form,
.vpm-change-password-form,
.vpm-vendor-profile {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.vpm-registration-form h2,
.vpm-login-form h2,
.vpm-forgot-password-form h2,
.vpm-reset-password-form h2,
.vpm-change-password-form h2 {
    margin: 0 0 30px 0;
    color: var(--gray-900);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--gray-500);
    font-size: 13px;
}

/* Checkboxes */
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: var(--gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--gray-700);
}

.checkbox-label:hover {
    background: #DBEAFE;
    color: #1E40AF;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6B7280;
    color: var(--white);
}

.btn-secondary:hover {
    background: #4B5563;
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.success-message,
.error-message {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

/* Dashboard */
.vpm-vendor-dashboard,
.vpm-projects-list,
.vpm-my-applications,
.vpm-vendor-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
}

.dashboard-subtitle {
    font-size: 18px;
    opacity: 0.95;
    color: var(--white);
    margin: 0;
}

/* Statistics Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    background: var(--primary);
    flex-shrink: 0;
}

.stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--gray-900);
}

.stat-content p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.dashboard-actions {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.dashboard-actions h2 {
    color: var(--gray-900);
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 700;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--primary);
    color: var(--white);
}

.action-btn:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Recent Applications / Tables Section */
.dashboard-recent,
.recent-applications,
.vpm-my-applications {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 700;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.section-header a:hover {
    color: var(--primary-dark);
}

/* Tables */
.vpm-applications-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.vpm-applications-table thead {
    background: var(--gray-50);
}

.vpm-applications-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.vpm-applications-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.vpm-applications-table tbody tr {
    transition: background 0.2s;
}

.vpm-applications-table tbody tr:hover {
    background: var(--gray-50);
}

.vpm-applications-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.vpm-applications-table a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-approved {
    background: #D1FAE5;
    color: #065F46;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

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

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

.project-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin: 0 0 16px 0;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 700;
}

.project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-meta p {
    margin: 8px 0;
    color: var(--gray-600);
    font-size: 14px;
}

.project-meta strong {
    color: var(--gray-700);
}

.project-excerpt {
    margin: 16px 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.project-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.already-applied {
    color: var(--gray-500);
    font-weight: 600;
    font-style: italic;
}

/* Modal Styles */
.vpm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--gray-400);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gray-700);
}

/* Application Details */
.application-details h2 {
    color: var(--gray-900);
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
    font-size: 26px;
    font-weight: 700;
}

.detail-section {
    margin: 28px 0;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
}

.detail-section h3 {
    color: var(--gray-900);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table td {
    padding: 12px 0;
}

.details-table td:first-child {
    width: 40%;
    color: var(--gray-700);
    font-weight: 600;
}

.details-table td:last-child {
    color: var(--gray-900);
}

.proposal-content,
.admin-notes {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    line-height: 1.8;
    color: var(--gray-700);
}

.detail-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Profile Sections */
.profile-section {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.profile-section h2 {
    color: var(--gray-900);
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 12px;
}

/* Landing Page */
.vpm-landing-page {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.landing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 70px 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-xl);
}

.landing-header h1 {
    font-size: 48px;
    margin: 0 0 16px 0;
    color: var(--white);
    font-weight: 800;
}

.landing-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.feature-item {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

.feature-item .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--gray-900);
    margin: 16px 0 12px 0;
    font-size: 22px;
    font-weight: 700;
}

.feature-item p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
}

.landing-actions {
    margin-top: 40px;
}

.landing-actions p {
    margin-top: 24px;
    color: var(--gray-600);
    font-size: 15px;
}

.landing-actions a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.landing-actions a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Single Project Page */
.vpm-single-project {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-header {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.project-title {
    margin: 0 0 20px 0;
    color: var(--gray-900);
    font-size: 36px;
    font-weight: 700;
}

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

.project-detail-item {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--gray-100);
}

.project-detail-item .dashicons {
    color: var(--primary);
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.project-detail-item strong {
    display: block;
    color: var(--gray-700);
    font-size: 13px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-detail-item p {
    margin: 0;
    color: var(--gray-900);
    font-size: 16px;
    font-weight: 600;
}

.project-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.project-content h2 {
    margin: 0 0 20px 0;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 700;
}

.project-apply-section,
.project-login-prompt {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.btn-apply {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats,
    .action-buttons,
    .projects-grid,
    .landing-features {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 28px;
    }
    
    .landing-header h1 {
        font-size: 32px;
    }
    
    .modal-content {
        margin: 10% 10px;
        padding: 24px;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .vpm-registration-form,
    .vpm-login-form,
    .vpm-forgot-password-form,
    .vpm-reset-password-form,
    .vpm-change-password-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Back Button */
.vpm-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.vpm-back-button:hover {
    background: var(--gray-200);
    color: var(--gray-900);
    transform: translateX(-2px);
}

.vpm-back-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Page Header with Back Button */
.page-header-with-back {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

/* File Upload Input */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--gray-300);
    border-radius: 8px;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]:hover {
    border-color: var(--primary);
    background: var(--white);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-600);
}
