/* ATE Agent Zone - Frontend Styles */

:root {
    --ate-primary: #2C5F2D;
    --ate-secondary: #97BC62;
    --ate-accent: #FF6B35;
    --ate-dark: #1a1a1a;
    --ate-gray: #6b7280;
    --ate-light-gray: #f3f4f6;
    --ate-border: #e5e7eb;
    --ate-success: #10b981;
    --ate-error: #ef4444;
    --ate-warning: #f59e0b;
}

/* Login & Registration Containers */
.ate-agent-login-container,
.ate-agent-register-container {
    max-width: 480px;
    margin: 60px auto;
    padding: 20px;
}

.ate-login-box,
.ate-register-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.ate-register-box {
    max-width: 700px;
    margin: 0 auto;
}

.ate-login-header,
.ate-register-header {
    text-align: center;
    margin-bottom: 32px;
}

.ate-login-header h2,
.ate-register-header h2 {
    color: var(--ate-primary);
    font-size: 28px;
    margin-bottom: 8px;
}

.ate-login-header p,
.ate-register-header p {
    color: var(--ate-gray);
    font-size: 14px;
}

/* Forms */
.ate-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ate-form-section {
    margin-bottom: 24px;
}

.ate-form-section h3 {
    color: var(--ate-dark);
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ate-light-gray);
}

.ate-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ate-form-row {
    display: flex;
    gap: 16px;
}

.ate-form-col-2 {
    flex: 1;
}

.ate-form-group label {
    font-weight: 500;
    color: var(--ate-dark);
    font-size: 14px;
}

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

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

.ate-form-group small {
    color: var(--ate-gray);
    font-size: 13px;
}

.ate-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ate-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ate-checkbox span {
    font-size: 14px;
    color: var(--ate-dark);
}

/* Buttons */
.ate-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.ate-btn-primary:hover {
    background: #234a24;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ate-btn-secondary {
    background: var(--ate-light-gray);
    color: var(--ate-dark);
}

.ate-btn-secondary:hover {
    background: var(--ate-border);
}

.ate-btn-block {
    width: 100%;
}

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

.ate-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Footer */
.ate-login-footer,
.ate-register-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--ate-border);
}

.ate-login-footer p,
.ate-register-footer p {
    color: var(--ate-gray);
    font-size: 14px;
}

.ate-login-footer a,
.ate-register-footer a,
.ate-forgot-password {
    color: var(--ate-primary);
    text-decoration: none;
    font-weight: 500;
}

.ate-login-footer a:hover,
.ate-register-footer a:hover,
.ate-forgot-password:hover {
    text-decoration: underline;
}

/* Messages */
.ate-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ate-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ate-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.ate-message-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Modal */
.ate-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.ate-modal.show {
    display: flex;
}

.ate-modal-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.ate-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: var(--ate-gray);
    cursor: pointer;
    line-height: 1;
}

.ate-modal-close:hover {
    color: var(--ate-dark);
}

/* Dashboard */
.ate-agent-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ate-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ate-light-gray);
}

.ate-dashboard-header h1 {
    color: var(--ate-primary);
    font-size: 32px;
    margin: 0 0 4px 0;
}

.ate-company-name {
    color: var(--ate-gray);
    font-size: 16px;
    margin: 0;
}

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

.ate-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--ate-border);
}

.ate-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--ate-light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ate-primary);
}

.ate-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ate-dark);
}

.ate-stat-label {
    font-size: 14px;
    color: var(--ate-gray);
}

/* Tabs */
.ate-dashboard-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ate-tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--ate-border);
    background: var(--ate-light-gray);
}

.ate-tab-button {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ate-gray);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.ate-tab-button:hover {
    background: rgba(44, 95, 45, 0.05);
    color: var(--ate-primary);
}

.ate-tab-button.active {
    background: white;
    color: var(--ate-primary);
    border-bottom-color: var(--ate-primary);
}

.ate-tab-content {
    display: none;
    padding: 32px;
}

.ate-tab-content.active {
    display: block;
}

.ate-content-section h2 {
    color: var(--ate-dark);
    font-size: 24px;
    margin-bottom: 24px;
}

.ate-content-section h3 {
    color: var(--ate-dark);
    font-size: 20px;
    margin: 32px 0 16px 0;
}

/* Packages Grid */
.ate-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.ate-package-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.ate-package-card {
    background: var(--ate-light-gray);
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.ate-package-card h4 {
    color: var(--ate-dark);
    font-size: 18px;
    margin-bottom: 16px;
}

.ate-package-details {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ate-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.ate-standard-price {
    text-decoration: line-through;
    color: var(--ate-gray);
}

.ate-agent-price {
    font-weight: 700;
    color: var(--ate-primary);
    font-size: 18px;
}

.ate-commission {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ate-border);
    color: var(--ate-success);
    font-weight: 600;
}

.ate-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.ate-package-features li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.ate-package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ate-success);
    font-weight: bold;
}

/* Marketing Materials */
.ate-marketing-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--ate-border);
}

.ate-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ate-download-card {
    background: white;
    border: 1px solid var(--ate-border);
    padding: 24px;
    border-radius: 10px;
    text-align: center;
}

.ate-download-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ate-download-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.ate-download-card p {
    font-size: 13px;
    color: var(--ate-gray);
    margin-bottom: 16px;
}

/* Booking Summary */
.ate-booking-summary {
    background: var(--ate-light-gray);
    padding: 24px;
    border-radius: 10px;
    margin: 24px 0;
}

.ate-booking-summary h3 {
    margin-top: 0;
}

.ate-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ate-border);
}

.ate-summary-total {
    font-weight: 700;
    font-size: 18px;
    border-bottom: 2px solid var(--ate-dark);
}

.ate-summary-commission {
    color: var(--ate-success);
    font-weight: 600;
    border-bottom: none;
}

/* Empty State */
.ate-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ate-gray);
}

.ate-empty-state svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.ate-empty-state h3 {
    color: var(--ate-dark);
    margin-bottom: 8px;
}

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

.ate-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.ate-status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .ate-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .ate-dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .ate-tab-buttons {
        flex-direction: column;
    }
    
    .ate-form-row {
        flex-direction: column;
    }
}
