/* Thai Massage Booking Plugin Styles */

.tmb-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tmb-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tmb-header h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 10px;
}

.tmb-form-group {
    margin-bottom: 25px;
}

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

.tmb-form-group input,
.tmb-form-group select,
.tmb-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff;
}

.tmb-form-group input:focus,
.tmb-form-group select:focus,
.tmb-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tmb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tmb-time-slot {
    padding: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.tmb-time-slot:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

.tmb-time-slot.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tmb-time-slot.unavailable {
    background: #f8f8f8;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.tmb-service-grid {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.tmb-service-item {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.tmb-service-item:hover {
    background: #f8f8f8;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tmb-service-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tmb-service-info {
    flex: 1;
}

.tmb-service-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.tmb-service-duration {
    font-size: 14px;
    opacity: 0.8;
}

.tmb-service-price {
    font-size: 22px;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.tmb-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
}

.tmb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tmb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tmb-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.tmb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.tmb-admin-container {
    background: #fff;
    padding: 20px;
    margin: 20px 20px 0 0;
}

.tmb-admin-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.tmb-admin-header h1 {
    color: #333;
    font-size: 24px;
}

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

.tmb-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.tmb-stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tmb-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.tmb-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tmb-admin-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.tmb-admin-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.tmb-admin-table tr:hover {
    background: #f8f9fa;
}

.tmb-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tmb-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.tmb-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.tmb-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
    transition: all 0.3s;
}

.tmb-action-btn.delete {
    background: #dc3545;
    color: white;
}

.tmb-action-btn.delete:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmb-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .tmb-service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tmb-service-price {
        margin-top: 10px;
        text-align: center;
    }
    
    .tmb-stats {
        grid-template-columns: 1fr;
    }
}

/* WordPress Admin Integration */
.wrap .tmb-admin-container {
    margin-top: 0;
}

.wp-admin .tmb-admin-container h1 {
    padding: 0;
    margin-bottom: 20px;
}
