/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hidden {
    display: none;
}

/* ========================================
   RPN TRAVELS SECTION STYLES
   ======================================== */
#travels-section {
    padding: 20px;
}

.travels-header {
    text-align: center;
    padding: 20px;
}

.travels-header h1 {
    text-align: center;
    color: #a71111;
    font-size: 50px;
    font-family: Arial, sans-serif;
}

.travels-header h2 {
    text-align: center;
    color: #a71111;
    font-size: 20px;
    font-family: Arial, sans-serif;
}

.bus-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.bus-gallery img {
    width: 500px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-section {
    padding: 20px;
}

.about-section p {
    font-size: 18px;
    color: #7129ba;
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
    line-height: 1.6;
}

.features-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.features-section .box {
    width: 250px;
    padding: 15px;
    border: 2px solid #097743;
    margin: 10px auto;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #683b0e;
    border-radius: 10px;
    background: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-section .box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-section {
    text-align: center;
    padding: 30px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 20px;
}

.contact-section h3 {
    text-align: center;
    color: #a71111;
    font-size: 30px;
    font-family: Arial, sans-serif;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 20px;
    color: #ba2933;
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 10px;
}

.call-text {
    font-size: 22px !important;
    color: #0e3b68 !important;
    font-weight: bold;
    margin-top: 15px;
}

.nav-btn {
    display: inline-block;
    margin: 20px auto;
    padding: 15px 30px;
    font-size: 18px;
    color: #bdc1d1;
    background-color: #290f64;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #3d1a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   PAYMENT SECTION STYLES
   ======================================== */
.payment-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    margin: 20px;
}

.payment-section h3 {
    text-align: center;
    color: #1a73e8;
    font-size: 32px;
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

.payment-desc {
    font-size: 18px;
    color: #555;
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 10px;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.gpay-btn {
    background: #4285f4;
    color: white;
}

.gpay-btn:hover {
    background: #3367d6;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(66, 133, 244, 0.3);
}

.phonepe-btn {
    background: #5f259f;
    color: white;
}

.phonepe-btn:hover {
    background: #4a1c7a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(95, 37, 159, 0.3);
}

.paytm-btn {
    background: #00b9f5;
    color: white;
}

.paytm-btn:hover {
    background: #0099cc;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 185, 245, 0.3);
}

.upi-qr-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e7ed 100%);
    border-radius: 15px;
}

.upi-qr-section h4 {
    font-size: 24px;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 10px;
}

.upi-qr-section p.payment-desc {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.qr-files-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.qr-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.qr-container {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: white;
    border: 3px solid #1a73e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-code-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
}

.qr-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 2px solid #1a73e8;
}

.qr-instructions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    border-left: 4px solid #34a853;
}

.qr-instructions strong {
    color: #1a73e8;
    font-size: 18px;
}

.upi-id-section {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: inline-block;
}

.upi-id-section p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.upi-id-section span {
    color: #1a73e8;
    font-weight: bold;
    font-family: monospace;
    font-size: 20px;
}

.copy-btn {
    background: #34a853;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.copy-btn:hover {
    background: #2d8e44;
    transform: scale(1.05);
}

/* Payment Modal */
.payment-modal-content {
    max-width: 500px;
}

.upi-link-section {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 10px;
    text-align: center;
}

.upi-link-section.hidden {
    display: none;
}

.upi-link-btn {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.upi-link-btn:hover {
    background: #1557b0;
    transform: scale(1.05);
}

.upi-note {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.pay-now-btn {
    background: #34a853 !important;
}

.pay-now-btn:hover {
    background: #2d8e44 !important;
}

/* ========================================
   CALENDAR SECTION STYLES
   ======================================== */
#calendar-section {
    padding: 20px;
}

.calendar-header-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

.calendar-header-main h1 {
    font-size: 2rem;
    color: white;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.home-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: white;
    color: #667eea;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: white;
    color: #667eea;
}

.admin-btn.logged-in {
    background: #4CAF50;
    border-color: #4CAF50;
}

.calendar-wrapper {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.calendar-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.calendar-header button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: #764ba2;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    background: #f5f5f5;
    min-height: 100px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.day:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

.day.other-month {
    background: #f0f0f0;
    color: #ccc;
}

.day.today {
    background: #667eea;
    color: white;
}

.day.today:hover {
    background: #764ba2;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-indicator {
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.events-section {
    padding: 30px;
    background: #f9f9f9;
    border-top: 2px solid #eee;
    border-radius: 15px;
    margin-top: 20px;
}

.events-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.add-event-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.add-event-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.events-list {
    display: grid;
    gap: 15px;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    position: relative;
}

.event-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.event-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-card .event-date {
    color: #667eea;
    font-weight: bold;
}

.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: none;
}

.delete-btn:hover {
    background: #d32f2f;
}

.delete-btn.visible {
    display: block;
}

/* Event Document */
.event-document {
    margin-top: 15px;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.event-document strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    padding: 8px 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #667eea;
    transition: all 0.3s ease;
    font-size: 14px;
}

.download-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Event Details Modal */
.event-details-modal .modal-content {
    max-width: 550px;
}

.event-details-view {
    padding: 10px 0;
}

.event-details-view h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.event-details-view p {
    margin: 10px 0;
    color: #555;
    font-size: 1rem;
}

.admin-event-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.edit-event-btn {
    flex: 1;
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.edit-event-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.add-another-btn {
    flex: 1;
    background: #34a853;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-another-btn:hover {
    background: #2d8e44;
    transform: translateY(-2px);
}

/* Mini Event Card for Multiple Events */
.events-list-mini {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    margin: 15px 0;
}

.event-card-mini {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    position: relative;
}

.event-card-mini h4 {
    color: #333;
    margin-bottom: 10px;
}

.event-card-mini p {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.delete-mini-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.delete-mini-btn:hover {
    background: #d32f2f;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.admin-modal {
    max-width: 400px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #764ba2;
}

.cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.no-events {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

/* ========================================
   BOOKED INDICATOR STYLES
   ======================================== */
.booked-indicator {
    background: #ff6b6b !important;
    font-weight: bold;
    font-size: 0.75rem;
}

.admin-indicator {
    background: #667eea !important;
    font-size: 0.65rem;
}

.booked-message {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    color: #856404;
    font-weight: 500;
}

.booked-message-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-align: center;
    margin: 20px 0;
}

.booked-submessage {
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

.booked-message-container {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 15px 0;
}

.booked-card {
    border-left: 4px solid #ff6b6b !important;
    background: #fff5f5 !important;
}

.booked-card h4 {
    color: #ff6b6b !important;
    font-weight: bold;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .calendar-header-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .calendar-header {
        flex-direction: column;
        gap: 10px;
    }

    .days-grid {
        gap: 3px;
    }

    .day {
        min-height: 60px;
        padding: 5px;
    }

    .event-indicator {
        font-size: 0.6rem;
    }

    .bus-gallery img {
        width: 100%;
    }

    .travels-header h1 {
        font-size: 32px;
    }

    .features-section .box {
        width: 100%;
    }
}

/* ========================================
   MAP SECTION STYLES
   ======================================== */
#map-section {
    padding: 20px;
}

.map-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-container h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    text-align: center;
}

.map-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .map-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   RPN AI BUTTON STYLES
   ======================================== */
.rpn-ai-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rpn-ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.rpn-ai-btn svg {
    width: 24px;
    height: 24px;
}

.rpn-ai-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 30px;
    bottom: 100px;
    width: 380px;
    max-width: calc(100vw - 60px);
    animation: fadeIn 0.3s ease;
}

.rpn-ai-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 550px;
}

.rpn-ai-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rpn-ai-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.rpn-ai-close {
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.rpn-ai-close:hover {
    opacity: 0.7;
}

.rpn-ai-chat-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    background: #f5f7fa;
}

.rpn-ai-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rpn-ai-message {
    display: flex;
    animation: slideIn 0.3s ease;
}

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

.rpn-ai-message.user-message {
    justify-content: flex-end;
}

.rpn-ai-message.ai-message {
    justify-content: flex-start;
}

.rpn-ai-message-content {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.rpn-ai-message.user-message .rpn-ai-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.rpn-ai-message.ai-message .rpn-ai-message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rpn-ai-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    gap: 10px;
}

.rpn-ai-input-area input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.rpn-ai-input-area input:focus {
    border-color: #667eea;
}

.rpn-ai-send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpn-ai-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rpn-ai-send-btn svg {
    width: 20px;
    height: 20px;
}

.rpn-ai-typing {
    font-style: italic;
    color: #888;
    font-size: 12px;
    padding: 5px 10px;
}

@media (max-width: 480px) {
    .rpn-ai-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .rpn-ai-modal {
        right: 20px;
        bottom: 80px;
        width: calc(100vw - 40px);
    }
}
