/**
 * Frontend Styles for Consultancy Application Manager
 *
 * @package    Consultancy_Application_Manager
 * @subpackage Consultancy_Application_Manager/assets/css
 * @since      1.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Client Dashboard Container */
.cam-client-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

.cam-client-dashboard h1 {
    color: #1a1a2e;
    margin-bottom: 35px;
    font-size: 36px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #2271b1 0%, #00a32a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Dashboard Tabs */
.cam-dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.cam-tab-button {
    padding: 14px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cam-tab-button:hover {
    color: #2271b1;
    background: #e8f2f8;
    transform: translateY(-1px);
}

.cam-tab-button.active {
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

.cam-tab-button.cam-logout-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    font-weight: 600;
}

.cam-tab-button.cam-logout-button:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Tab Content */
.cam-tab-content {
    display: none;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cam-tab-content.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cam-tab-content h2 {
    margin-top: 0;
    color: #1a1a2e;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    padding-bottom: 15px;
    margin-bottom: 30px;
    position: relative;
}

.cam-tab-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2271b1, #00a32a);
    border-radius: 2px;
}

/* Statistics Boxes */
.cam-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cam-stat-box {
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
    color: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cam-stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.cam-stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(34, 113, 177, 0.35);
}

.cam-stat-box h3 {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.cam-stat-box p {
    margin: 12px 0 0 0;
    font-size: 15px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Forms */
.cam-form-group {
    margin-bottom: 20px;
}

.cam-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cam-form-group input[type="text"],
.cam-form-group input[type="email"],
.cam-form-group input[type="tel"],
.cam-form-group select,
.cam-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.cam-form-group input:focus,
.cam-form-group select:focus,
.cam-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

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

/* Buttons */
.cam-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.25);
    letter-spacing: 0.3px;
}

.cam-button:hover {
    background: linear-gradient(135deg, #1a5a8a 0%, #0f3d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.35);
    color: #ffffff;
}

.cam-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.2);
}

.cam-button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.25);
}

.cam-button.secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4a525a 100%);
}

/* Applications Table */
.cam-applications-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.cam-applications-table thead tr {
    background: linear-gradient(135deg, #2271b1 0%, #1a5a8a 100%);
}

.cam-applications-table th,
.cam-applications-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cam-applications-table th {
    font-weight: 600;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cam-applications-table tbody tr {
    background: #ffffff;
    transition: all 0.3s ease;
}

.cam-applications-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cam-applications-table tbody tr:last-child td {
    border-bottom: none;
}

.cam-applications-table td {
    color: #2d3748;
    font-size: 15px;
}

/* Agent Info */
.cam-agent-info {
    background: linear-gradient(135deg, #e8f2f8 0%, #d4e9f7 100%);
    padding: 30px;
    border-left: 5px solid #2271b1;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.1);
}

.cam-agent-info h3 {
    margin-top: 0;
    color: #1a1a2e;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
}

.cam-agent-info p {
    margin: 12px 0;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
}

.cam-agent-info strong {
    color: #2271b1;
    font-weight: 600;
}

/* Agent Selection */
.cam-agent-selection {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cam-agent-selection h3 {
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Notice Box */
.cam-notice {
    padding: 18px 24px;
    border-left: 5px solid #ffc107;
    background: #fff3cd;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
    font-size: 15px;
    line-height: 1.6;
}

.cam-notice.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.15);
}

.cam-notice.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.15);
}

.cam-notice.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
    box-shadow: 0 2px 10px rgba(23, 162, 184, 0.15);
}

/* Login Form */
.cam-login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cam-login-form h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

/* Profile Info */
.cam-profile-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.cam-profile-info p {
    margin: 12px 0;
    font-size: 15px;
}

.cam-profile-info strong {
    color: #2271b1;
    display: inline-block;
    min-width: 100px;
}

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

.cam-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cam-client-dashboard {
        padding: 20px 10px;
    }

    .cam-dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cam-tab-button {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
    }

    .cam-tab-content {
        padding: 20px 15px;
    }

    .cam-stats {
        flex-direction: column;
    }

    .cam-stat-box {
        min-width: 100%;
    }

    .cam-applications-table {
        font-size: 14px;
    }

    .cam-applications-table th,
    .cam-applications-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .cam-dashboard-tabs,
    .cam-button {
        display: none;
    }

    .cam-tab-content {
        display: block !important;
    }
}
