/* Travel Share Platform Styles */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
    --tsp-primary: #14364C;
    --tsp-primary-dark: #0d2434;
    --tsp-primary-light: #1e4a64;
    --tsp-black: #000000;
    --tsp-white: #FFFFFF;
    --tsp-gray-100: #F8F9FA;
    --tsp-gray-200: #E9ECEF;
    --tsp-gray-300: #DEE2E6;
    --tsp-gray-400: #CED4DA;
    --tsp-gray-600: #6C757D;
    --tsp-gray-800: #343A40;
    --tsp-success: #10b981;
    --tsp-danger: #ef4444;
    --tsp-shadow: 0 2px 8px rgba(20, 54, 76, 0.08);
    --tsp-shadow-lg: 0 10px 30px rgba(20, 54, 76, 0.15);
}

* {
    box-sizing: border-box;
}

/* General Styles */
.tsp-homepage, .tsp-browse, .tsp-trip-detail, .tsp-submit-trip, .tsp-dashboard, .tsp-auth {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Search Section */
.tsp-search-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--tsp-primary) 0%, var(--tsp-primary-dark) 100%);
    color: var(--tsp-white);
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: var(--tsp-shadow-lg);
}

.tsp-search-section h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tsp-search-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.tsp-search-form {
    max-width: 1000px;
    margin: 0 auto;
}

.tsp-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tsp-input,
input[type="text"].tsp-input,
input[type="email"].tsp-input,
input[type="password"].tsp-input,
input[type="number"].tsp-input,
input[type="tel"].tsp-input,
select.tsp-input,
textarea.tsp-input {
    padding: 16px 20px;
    border: 2px solid var(--tsp-gray-300);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    flex: 1;
    min-width: 180px;
    background: var(--tsp-white);
    color: var(--tsp-black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.tsp-input:hover {
    border-color: var(--tsp-gray-400);
}

.tsp-input:focus {
    outline: none;
    border-color: var(--tsp-primary);
    box-shadow: 0 0 0 4px rgba(20, 54, 76, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tsp-input::placeholder {
    color: var(--tsp-gray-600);
    font-weight: 400;
}

textarea.tsp-input {
    resize: vertical;
    min-height: 100px;
}

select.tsp-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2314364C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

select.tsp-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2314364C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Buttons */
.tsp-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Instrument Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tsp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tsp-btn:hover::before {
    left: 100%;
}

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

.tsp-btn-ms {
    background: var(--tsp-black) !important;
    color: var(--tsp-white) !important;
    border: 2px solid var(--tsp-primary) !important;
}

.tsp-btn-primary:hover {
    background: var(--tsp-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 54, 76, 0.35);
    color: #FFFFFF;
}

.tsp-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.25);
}

.tsp-btn-secondary {
    background: var(--tsp-white);
    color: var(--tsp-primary);
    border: 2px solid var(--tsp-primary);
    box-shadow: 0 2px 8px rgba(20, 54, 76, 0.1);
}

.tsp-btn-secondary:hover {
    background: var(--tsp-primary);
    color: var(--tsp-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 54, 76, 0.25);
}

.tsp-btn-secondary:active {
    transform: translateY(-1px);
}

.tsp-btn-danger {
    background: var(--tsp-danger);
    color: var(--tsp-white);
}

.tsp-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.tsp-btn-danger:active {
    transform: translateY(-1px);
}

.tsp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.tsp-btn:disabled:hover {
    transform: none;
}

/* Button Sizes */
.tsp-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.tsp-btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

/* Trips Grid */
.tsp-trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tsp-trip-card {
    background: var(--tsp-white);
    border: 2px solid var(--tsp-gray-200);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.tsp-trip-card:hover {
    box-shadow: var(--tsp-shadow-lg);
    transform: translateY(-8px);
    border-color: var(--tsp-primary);
}

.tsp-trip-card-header {
    padding: 28px;
    background: linear-gradient(135deg, var(--tsp-primary) 0%, var(--tsp-primary-light) 100%);
    color: var(--tsp-white);
    border-bottom: none;
}

.tsp-trip-card-header h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tsp-trip-card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.tsp-trip-card-body {
    padding: 28px;
}

.tsp-trip-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tsp-tag {
    padding: 8px 16px;
    background: var(--tsp-gray-100);
    color: var(--tsp-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--tsp-gray-200);
}

.tsp-trip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--tsp-gray-200);
}

.tsp-trip-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--tsp-gray-600);
    font-weight: 600;
}

.tsp-trip-actions {
    display: flex;
    gap: 10px;
}

.tsp-icon-btn {
    padding: 12px;
    background: var(--tsp-white);
    border: 2px solid var(--tsp-gray-300);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tsp-icon-btn:hover {
    background: var(--tsp-primary);
    border-color: var(--tsp-primary);
    color: var(--tsp-white);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.25);
}

.tsp-icon-btn:active {
    transform: scale(1.05) translateY(0);
}

.tsp-icon-btn.active {
    background: var(--tsp-primary);
    color: var(--tsp-white);
    border-color: var(--tsp-primary);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.25);
}

/* Featured Section */
.tsp-featured-section {
    margin: 80px 0;
}

.tsp-featured-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--tsp-black);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* CTA Section */
.tsp-cta-section {
    text-align: center;
    padding: 80px 40px;
    background: var(--tsp-gray-100);
    border-radius: 20px;
    margin-top: 80px;
    border: 2px solid var(--tsp-gray-200);
}

.tsp-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--tsp-black);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tsp-cta-section p {
    font-size: 1.15rem;
    color: var(--tsp-gray-600);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Trip Detail */
.tsp-trip-detail {
    background: var(--tsp-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--tsp-shadow-lg);
    border: 2px solid var(--tsp-gray-200);
}

.tsp-trip-header {
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--tsp-primary) 0%, var(--tsp-primary-dark) 100%);
    color: var(--tsp-white);
}

.tsp-trip-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tsp-trip-info {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    font-size: 1.05rem;
    font-weight: 600;
}

.tsp-trip-content {
    padding: 50px;
}

.tsp-day-section {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--tsp-gray-100);
    border-radius: 20px;
    border: 2px solid var(--tsp-gray-200);
}

.tsp-day-section h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--tsp-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tsp-day-item {
    margin-bottom: 30px;
}

.tsp-day-item h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--tsp-black);
    font-weight: 700;
}

.tsp-item-list {
    list-style: none;
    padding: 0;
}

.tsp-item-list li {
    padding: 16px 0;
    border-bottom: 2px solid var(--tsp-gray-200);
    font-size: 1rem;
    font-weight: 500;
    color: var(--tsp-gray-800);
}

.tsp-item-list li:last-child {
    border-bottom: none;
}

/* Submit Form */
.tsp-form {
    max-width: 900px;
    margin: 0 auto;
}

.tsp-submit-trip h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--tsp-black);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.tsp-form-section {
    background: var(--tsp-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--tsp-shadow);
    margin-bottom: 40px;
    border: 2px solid var(--tsp-gray-200);
}

.tsp-form-section h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--tsp-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tsp-form-section h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--tsp-primary);
    border-radius: 2px;
}

/* Generate Days Button Special Style */
#tsp-generate-days {
    margin-top: 20px;
    width: 100%;
    background: linear-gradient(135deg, var(--tsp-primary) 0%, var(--tsp-primary-dark) 100%);
    color: var(--tsp-white);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.25);
}

#tsp-generate-days:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 54, 76, 0.35);
}

.tsp-form-group {
    margin-bottom: 24px;
}

.tsp-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--tsp-black);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.tsp-form-group label span.required {
    color: var(--tsp-danger);
    margin-left: 4px;
}

/* Checkbox and Radio Styling */
.tsp-form-group input[type="checkbox"],
.tsp-form-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--tsp-primary);
    cursor: pointer;
}

.tsp-form-group label:has(input[type="checkbox"]),
.tsp-form-group label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Form Row for Inline Fields */
.tsp-form-row-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Field Help Text */
.tsp-field-help {
    font-size: 0.85rem;
    color: var(--tsp-gray-600);
    margin-top: 6px;
    font-weight: 400;
}

.tsp-days-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tsp-day-form {
    background: var(--tsp-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--tsp-shadow);
    border: 2px solid var(--tsp-gray-200);
}

.tsp-day-form h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--tsp-primary);
    font-weight: 700;
}

.tsp-day-form h5 {
    font-size: 1.15rem;
    margin-bottom: 16px;
    margin-top: 30px;
    color: var(--tsp-black);
    font-weight: 600;
}

.tsp-repeater {
    margin-top: 25px;
}

.tsp-repeater .tsp-add-item {
    width: 100%;
    margin-top: 16px;
    padding: 14px 24px;
    background: var(--tsp-white);
    color: var(--tsp-primary);
    border: 2px dashed var(--tsp-primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tsp-repeater .tsp-add-item:hover {
    background: var(--tsp-primary);
    color: var(--tsp-white);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.2);
}

.tsp-repeater-item {
    padding: 28px;
    background: var(--tsp-white);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid var(--tsp-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tsp-repeater-item:hover {
    border-color: var(--tsp-primary);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.12);
}

.tsp-repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tsp-repeater-header strong {
    font-size: 1.05rem;
    color: var(--tsp-primary);
    font-weight: 700;
}

.tsp-btn-remove {
    padding: 10px 18px;
    background: var(--tsp-danger);
    color: var(--tsp-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

.tsp-btn-remove:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.tsp-btn-remove:active {
    transform: translateY(0);
}

.tsp-form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--tsp-gray-200);
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.tsp-form-actions .tsp-btn {
    min-width: 180px;
}

/* Dashboard */
.tsp-dashboard h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--tsp-black);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tsp-dashboard-nav {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--tsp-gray-200);
    overflow-x: auto;
}

.tsp-tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--tsp-gray-600);
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.tsp-tab-btn.active {
    color: var(--tsp-primary);
    border-bottom-color: var(--tsp-primary);
}

.tsp-tab-btn:hover {
    color: var(--tsp-primary);
}

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

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

.tsp-tab-content h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--tsp-black);
    font-weight: 700;
}

.tsp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.tsp-section-header p {
    color: var(--tsp-gray-600);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Profile Statistics */
.tsp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tsp-stat-card {
    background: var(--tsp-gray-100);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--tsp-gray-200);
    transition: all 0.3s ease;
}

.tsp-stat-card:hover {
    border-color: var(--tsp-primary);
    box-shadow: 0 4px 12px rgba(20, 54, 76, 0.12);
}

.tsp-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tsp-primary);
    margin-bottom: 8px;
    display: block;
}

.tsp-stat-card .stat-label {
    color: var(--tsp-gray-600);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Auth Forms */
.tsp-auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: var(--tsp-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--tsp-shadow-lg);
    border: 2px solid var(--tsp-gray-200);
}

.tsp-auth-container .tsp-form-group:last-of-type {
    margin-bottom: 30px;
}

.tsp-auth-container .tsp-btn {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 16px;
}

.tsp-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--tsp-gray-200);
}

.tsp-auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--tsp-gray-600);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.tsp-auth-tab.active {
    color: var(--tsp-primary);
    border-bottom-color: var(--tsp-primary);
}

.tsp-auth-form {
    display: none;
}

.tsp-auth-form.active {
    display: block;
}

.tsp-form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    display: none;
    font-weight: 600;
    border: 2px solid;
    animation: tsp-slide-in 0.3s ease;
}

.tsp-form-message.success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.tsp-form-message.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.tsp-form-message.error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.tsp-form-message.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

/* Loading */
.tsp-loading {
    text-align: center;
    padding: 60px;
    color: var(--tsp-gray-600);
    font-size: 1.1rem;
    font-weight: 500;
}

.tsp-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    border: 3px solid var(--tsp-gray-300);
    border-top-color: var(--tsp-primary);
    border-radius: 50%;
    animation: tsp-spin 0.8s linear infinite;
}

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

/* Message */
.tsp-message {
    padding: 20px 24px;
    border-radius: 12px;
    margin-top: 30px;
    font-weight: 600;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: tsp-slide-in 0.3s ease;
}

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

.tsp-message.success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.tsp-message.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.tsp-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.tsp-message.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

/* Empty State Messages */
.tsp-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tsp-gray-600);
}

/* Load More */
.tsp-load-more {
    text-align: center;
    margin-top: 50px;
}

/* Input Groups with Icons */
.tsp-input-group {
    position: relative;
}

.tsp-input-group .tsp-input {
    padding-left: 48px;
}

.tsp-input-group .tsp-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tsp-gray-600);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Focus States Enhancement */
.tsp-form-group:focus-within label {
    color: var(--tsp-primary);
}

/* Invalid/Error States */
.tsp-input.error {
    border-color: var(--tsp-danger);
}

.tsp-input.error:focus {
    border-color: var(--tsp-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.tsp-field-error {
    color: var(--tsp-danger);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tsp-field-error::before {
    content: '⚠';
}

/* Success States */
.tsp-input.success {
    border-color: var(--tsp-success);
}

.tsp-input.success:focus {
    border-color: var(--tsp-success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

/* Disabled States */
.tsp-input:disabled {
    background: var(--tsp-gray-100);
    color: var(--tsp-gray-600);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Search Input Enhancement */
.tsp-search-input-wrapper {
    position: relative;
}

.tsp-search-input-wrapper input {
    padding-left: 48px;
}

.tsp-search-input-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Toast Notifications */
.tsp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.tsp-toast-success {
    background: var(--tsp-success);
    color: white;
}

.tsp-toast-error {
    background: var(--tsp-danger);
    color: white;
}

.tsp-toast-info {
    background: var(--tsp-primary);
    color: white;
}

#tsp-search-form button.tsp-btn.tsp-btn-primary,
#tsp-submit-form button.tsp-btn.tsp-btn-primary,
#tsp-login-form button.tsp-btn.tsp-btn-primary,
#register button.tsp-btn.tsp-btn-primary,
#tsp-profile-form button.tsp-btn.tsp-btn-primary,
#tsp-submit-form button.tsp-btn.tsp-btn-primary {
    background: #FFFFFF;
    color: #000000;
    font-weight: 500;
    border-color: #000000;
}

/* Responsive */
@media (max-width: 1024px) {
    .tsp-trips-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .tsp-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .tsp-search-section {
        padding: 60px 30px;
    }
    
    .tsp-search-section h1 {
        font-size: 2rem;
    }
    
    .tsp-search-section p {
        font-size: 1.05rem;
    }
    
    .tsp-form-row {
        flex-direction: column;
    }
    
    .tsp-input {
        min-width: 100%;
    }
    
    .tsp-trips-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tsp-trip-header {
        padding: 40px 30px;
    }
    
    .tsp-trip-header h1 {
        font-size: 2rem;
    }
    
    .tsp-trip-content {
        padding: 30px;
    }
    
    .tsp-day-section {
        padding: 30px;
    }
    
    .tsp-form-section,
    .tsp-day-form {
        padding: 30px;
    }
    
    .tsp-auth-container {
        padding: 40px 30px;
    }
    
    .tsp-featured-section h2,
    .tsp-cta-section h2,
    .tsp-dashboard h2 {
        font-size: 2rem;
    }
    
    .tsp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tsp-form-row-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tsp-search-section h1 {
        font-size: 1.75rem;
    }
    
    .tsp-trip-card-header,
    .tsp-trip-card-body {
        padding: 20px;
    }
    
    .tsp-auth-container {
        padding: 30px 20px;
    }
    
    .tsp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tsp-dashboard-nav {
        flex-direction: column;
    }
    
    .tsp-tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 4px solid transparent;
        padding: 12px 20px;
    }
    
    .tsp-tab-btn.active {
        border-left-color: var(--tsp-primary);
        border-bottom-color: transparent;
    }
}