/* Travel Partner Portal - Frontend Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Notice Styles */
.tpp-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    text-align: center;
}

.tpp-notice-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tpp-notice-error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.tpp-notice-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* Form Styles */
.tpp-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tpp-form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 30px;
    text-align: center;
}

.tpp-form-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.tpp-form-header p {
    font-size: 16px;
    opacity: 0.9;
}

.tpp-form {
    padding: 30px;
}

.tpp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tpp-form-group {
    flex: 1;
}

.tpp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.tpp-form-group input,
.tpp-form-group select,
.tpp-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.tpp-form-group input:focus,
.tpp-form-group select:focus,
.tpp-form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.tpp-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.tpp-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tpp-radio-label input {
    margin-right: 8px;
}

.tpp-form-submit {
    text-align: center;
    margin-top: 30px;
}

.tpp-form-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.tpp-form-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.tpp-form-footer a:hover {
    text-decoration: underline;
}

/* Button Styles */
.tpp-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.tpp-button:hover {
    background: #2980b9;
    color: #fff;
}

.tpp-button-primary {
    background: var(--secondary-color);
}

.tpp-button-primary:hover {
    background: #2980b9;
}

/* Card Styles */
.tpp-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.tpp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.tpp-card-header h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin: 0;
}

.tpp-card-icon {
    font-size: 24px;
    opacity: 0.7;
}

/* Dashboard Styles */
.tpp-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tpp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tpp-welcome h1 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.tpp-welcome p {
    color: #666;
    font-size: 16px;
}

.tpp-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.tpp-approved {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.tpp-pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.tpp-dashboard-content {
    display: flex;
    gap: 30px;
}

.tpp-dashboard-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.tpp-dashboard-main {
    flex: 1;
}

.tpp-menu {
    list-style: none;
}

.tpp-menu-item {
    margin-bottom: 5px;
}

.tpp-menu-item.active {
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
}

.tpp-menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tpp-menu-link:hover {
    background: rgba(52, 152, 219, 0.1);
}

.tpp-menu-item.active .tpp-menu-link {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    font-weight: 500;
}

.tpp-menu-icon {
    margin-right: 12px;
    font-size: 18px;
}

.tpp-notes {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Logout Button Styles */
.tpp-logout-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tpp-dashboard-header .tpp-logout-container {
    flex-direction: column;
    align-items: flex-end;
}

.tpp-dashboard-header .tpp-logout-container p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.tpp-dashboard-header .tpp-logout-container .tpp-button {
    margin-top: 5px;
    padding: 8px 16px;
    font-size: 14px;
    background: #e74c3c;
}

.tpp-dashboard-header .tpp-logout-container .tpp-button:hover {
    background: #c0392b;
}

/* Commission Summary */
.tpp-commission-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tpp-commission-card {
    flex: 1;
    padding: 25px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.tpp-commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tpp-commission-icon {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.tpp-commission-card h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.tpp-commission-card p {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
}

/* Activity */
.tpp-activity {
    padding: 5px 0;
}

.tpp-activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.tpp-activity-item:last-child {
    border-bottom: none;
}

.tpp-activity-icon {
    margin-right: 15px;
    font-size: 20px;
    opacity: 0.7;
}

.tpp-activity-content {
    flex: 1;
}

.tpp-activity-content p {
    margin-bottom: 5px;
    font-weight: 500;
}

.tpp-activity-meta {
    display: flex;
    gap: 15px;
}

.tpp-activity-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tpp-activity-status.new {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.tpp-activity-status.contacted {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.tpp-activity-status.converted {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.tpp-activity-status.closed {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.tpp-activity-date {
    color: #999;
    font-size: 13px;
}

/* Table Styles */
.tpp-table-responsive {
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px;
}

.tpp-table {
    width: 100%;
    border-collapse: collapse;
}

.tpp-table th,
.tpp-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tpp-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.tpp-table tr:last-child td {
    border-bottom: none;
}

/* Dashboard Sections */
.tpp-dashboard-section {
    display: none;
}

.tpp-dashboard-section.active {
    display: block;
}

/* Messages */
.tpp-logged-in-message,
.tpp-error-message,
.tpp-success-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.tpp-logged-in-message .tpp-icon,
.tpp-error-message .tpp-icon,
.tpp-success-message .tpp-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tpp-logged-in-message .tpp-icon {
    color: var(--success-color);
}

.tpp-error-message .tpp-icon {
    color: var(--danger-color);
}

.tpp-success-message .tpp-icon {
    color: var(--success-color);
}

.tpp-logged-in-message h3,
.tpp-error-message h3,
.tpp-success-message h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tpp-logged-in-message p,
.tpp-error-message p,
.tpp-success-message p {
    margin-bottom: 20px;
    color: #666;
}

/* Status Badges */
.tpp-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tpp-status-badge.new {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.tpp-status-badge.contacted {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.tpp-status-badge.converted {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.tpp-status-badge.closed {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.tpp-status-badge.paid {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.tpp-status-badge.pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .tpp-dashboard-content {
        flex-direction: column;
    }
    
    .tpp-dashboard-sidebar {
        width: 100%;
    }
    
    .tpp-commission-summary {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tpp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tpp-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tpp-table-responsive {
        margin: 0;
        padding: 0;
    }
    
    .tpp-table th,
    .tpp-table td {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .tpp-form-container,
    .tpp-dashboard {
        padding: 0 10px;
    }
    
    .tpp-form {
        padding: 20px;
    }
    
    .tpp-card-header {
        padding: 15px 20px;
    }
    
    .tpp-card-header h3 {
        font-size: 18px;
    }
    
    .tpp-commission-card {
        padding: 20px 15px;
    }
    
    .tpp-commission-card h4 {
        font-size: 14px;
    }
    
    .tpp-commission-card p {
        font-size: 20px;
    }
}