/* Travel Portal - Agency Dashboard CSS */

/* General */
.tp-dashboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.tp-dashboard-header {
    background: #081C2D;
    color: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tp-dashboard-header h1 {
    color: #C9A45C;
    margin: 0;
    font-size: 24px;
}

.tp-dashboard-header p {
    margin: 5px 0 0;
    color: #DCE6EA;
    font-size: 14px;
}

/* Stats */
.tp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.tp-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #DCE6EA;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tp-stat-card--active { border-left-color: #28a745; }
.tp-stat-card--pending { border-left-color: #C9A45C; }
.tp-stat-card--draft { border-left-color: #6c757d; }

.tp-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #081C2D;
    line-height: 1;
}

.tp-stat-label {
    font-size: 13px;
    color: #4A5560;
    margin-top: 4px;
}

/* Actions */
.tp-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.tp-action-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #081C2D;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.tp-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: #081C2D;
    text-decoration: none;
}

.tp-action-primary {
    background: #C9A45C;
    color: #fff !important;
}

.tp-action-primary:hover {
    background: #b8923f;
    color: #fff !important;
}

.tp-action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}

.tp-action-icon svg {
    width: 100%;
    height: 100%;
}

.tp-action-label {
    font-size: 14px;
    font-weight: 600;
}

/* Form */
.tp-form-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.tp-form-title {
    font-size: 20px;
    font-weight: bold;
    color: #081C2D;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F8F4EC;
}

.tp-form-group {
    margin-bottom: 20px;
}

.tp-form-label {
    display: block;
    font-weight: 600;
    color: #4A5560;
    margin-bottom: 6px;
    font-size: 14px;
}

.tp-required {
    color: #dc3545;
    margin-left: 3px;
}

.tp-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DCE6EA;
    border-radius: 6px;
    font-size: 14px;
    color: #4A5560;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tp-form-control:focus {
    outline: none;
    border-color: #C9A45C;
    box-shadow: 0 0 0 3px rgba(201,164,92,0.15);
}

.tp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Tabs */
.tp-tabs {
    display: flex;
    border-bottom: 2px solid #DCE6EA;
    margin-bottom: 25px;
    gap: 5px;
}

.tp-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #4A5560;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tp-tab.active, .tp-tab:hover {
    color: #081C2D;
    border-bottom-color: #C9A45C;
}

.tp-tab-content {
    display: none;
}

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

/* Buttons */
.tp-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.tp-btn-primary {
    background: #081C2D;
    color: #fff;
}

.tp-btn-primary:hover {
    background: #C9A45C;
    color: #fff;
}

.tp-btn-secondary {
    background: #F8F4EC;
    color: #4A5560;
    border: 1px solid #DCE6EA;
}

.tp-btn-secondary:hover {
    background: #DCE6EA;
}

.tp-btn-success {
    background: #28a745;
    color: #fff;
}

.tp-btn-danger {
    background: #dc3545;
    color: #fff;
}

/* Notices */
.tp-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.tp-notice--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tp-notice--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tp-notice--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table */
.tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tp-table th {
    background: #F8F4EC;
    color: #4A5560;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #DCE6EA;
}

.tp-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #F8F4EC;
    color: #4A5560;
}

.tp-table tr:hover td {
    background: #F8F4EC;
}

/* Status badges */
.tp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tp-badge--active { background: #d4edda; color: #155724; }
.tp-badge--pending { background: #fff3cd; color: #856404; }
.tp-badge--draft { background: #e2e3e5; color: #383d41; }
.tp-badge--rejected { background: #f8d7da; color: #721c24; }

/* URL copy */
.tp-url-copy-wrap {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.tp-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #DCE6EA;
    border-radius: 6px;
    font-size: 13px;
    background: #F8F4EC;
}

.tp-copy-btn {
    padding: 8px 15px;
    background: #081C2D;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .tp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-actions-grid { grid-template-columns: 1fr; }
    .tp-form-row { grid-template-columns: 1fr; }
}
