/* 
 * Tour Manager Frontend Styles
 */

.tm-dashboard-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.tm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tm-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: bold;
}

.tm-header p {
    margin: 0;
    color: #666;
}

.tm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.tm-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tm-stat-card h4 {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 600;
}

.tm-stat-card .tm-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tm-stat-card p {
    margin: 0;
    font-size: 0.75rem;
    color: #718096;
}

.tm-table-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.tm-table-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tm-table-responsive {
    overflow-x: auto;
}

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

.tm-table th, .tm-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.tm-table th {
    font-weight: 600;
    color: #4a5568;
    background-color: #f7fafc;
}

.tm-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tm-badge-primary {
    background-color: #3182ce;
    color: #fff;
}

.tm-badge-secondary {
    background-color: #edf2f7;
    color: #4a5568;
}

.tm-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tm-btn-primary {
    background-color: #000;
    color: #fff;
}

.tm-btn-primary:hover {
    background-color: #333;
}

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

/* Modal CSS */
.tm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.tm-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tm-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.tm-close:hover,
.tm-close:focus {
    color: #000;
    text-decoration: none;
}

.tm-form-group {
    margin-bottom: 1rem;
}

.tm-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.tm-form-group input,
.tm-form-group select,
.tm-form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}

.tm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

#tm-cancel-btn {
    background: #fff;
    border-color: #e2e8f0;
    color: #4a5568;
}

#tm-cancel-btn:hover {
    background: #f7fafc;
}
