/* Performer Finder Plugin Styles */

/* Review System Styles */
.pf-write-review {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.review-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.performer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.performer-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.performer-info h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.performer-location {
    opacity: 0.9;
    font-size: 0.9rem;
}

.pf-review-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.15s ease;
    margin: 0;
}

.star-rating-input label:hover {
    transform: scale(1.1);
}

/* Star colors will be handled by JavaScript */
.star-rating-input label.active {
    color: #fbbf24 !important;
}

.rating-text {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Form Inputs */
.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #cbd5e1;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-guidelines {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.review-guidelines h4 {
    margin: 0 0 1rem 0;
    color: #334155;
}

.review-guidelines ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #64748b;
}

.review-guidelines li {
    margin-bottom: 0.5rem;
}

/* Review Display */
.review-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-meta {
    flex: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: #1e293b;
}

.verified-badge {
    background: #f0fdf4;
    color: #15803d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-rating {
    display: inline-flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.star-rating i {
    font-size: 0.875rem;
}

.review-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

.review-content {
    margin-bottom: 1rem;
}

.review-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: #1e293b;
}

.review-text {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.review-response {
    background: #f8fafc;
    border-left: 3px solid #667eea;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.response-text {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Modern Inbox Page Header */
.dashboard-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem 0;
}

.inbox-page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inbox-header-content h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.inbox-header-content h1::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.946 9.315c-.522-.174-.527-.455.01-.634l19.087-6.362c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8-8 6-8.054-2.685z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: 28px;
    mask-size: 28px;
    flex-shrink: 0;
}

.inbox-header-content .dashboard-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    padding-left: 3.25rem;
}

.inbox-header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    display: none;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Modern Fun Inbox Styles */
.pf-inbox {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.inbox-container {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    min-height: 600px;
    max-height: 85vh;
    padding: 4px;
    position: relative;
    overflow: hidden;
}

.inbox-sidebar {
    background: white;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    width: 380px;
    flex-shrink: 0;
    border-right: 2px solid #e0e7ff;
    overflow: hidden;
}

.inbox-header {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
    border-bottom: 2px solid #e0e7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 100px;
    box-sizing: border-box;
}

.inbox-header h3 {
    margin: 0;
    color: #4c1d95;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inbox-header h3::before {
    content: "💬";
    font-size: 1.25rem;
}

.btn-compose {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-compose:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.btn-compose i {
    font-size: 0.875rem;
}

.inbox-search {
    padding: 1.25rem;
    position: relative;
    background: #fafbff;
    flex-shrink: 0;
}

.inbox-search input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1.25rem;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
}

.inbox-search input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.inbox-search i {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 0.9rem;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    background: #fafbff;
    border-radius: 0 0 0 16px;
}

.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.conversation-item {
    padding: 1rem 1.25rem;
    margin: 0.25rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

.conversation-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    transform: translateX(2px);
}

.conversation-item.active {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #e9d5ff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.conversation-item.unread {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fde68a;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: #4c1d95;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.conversation-time {
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 500;
}

.conversation-preview {
    color: #64748b;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-preview strong {
    color: #334155;
    font-weight: 600;
    line-height: 1.4;
}

.unread-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Main inbox area */
.inbox-main {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 20px 20px 0;
    flex: 1;
    overflow: hidden;
}

.conversation-header {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 2px solid #e9d5ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 100px;
    box-sizing: border-box;
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.participant-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.participant-avatar-link {
    display: block;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.participant-avatar-link:hover {
    transform: scale(1.05);
}

.participant-avatar-link:hover .participant-avatar {
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.participant-name {
    margin: 0;
    color: #4c1d95;
    font-size: 1.125rem;
    font-weight: 600;
}

.participant-role {
    font-size: 0.875rem;
    color: #a78bfa;
    font-weight: 500;
    margin-top: 0.125rem;
}

.conversation-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: linear-gradient(to bottom, #fafbff 0%, #ffffff 100%);
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.no-conversation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a78bfa;
    text-align: center;
    padding: 2rem;
}

.no-conversation i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.no-conversation h3 {
    margin: 0 0 0.5rem 0;
    color: #4c1d95;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-conversation p {
    color: #8b5cf6;
    font-size: 0.95rem;
}

.message-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.875rem;
    animation: fadeIn 0.3s ease;
}

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

.message-item.mine {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-bubble {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent white transparent transparent;
    left: -8px;
    top: 15px;
}

.message-item.mine .message-bubble {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.message-item.mine .message-bubble::before {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #8b5cf6;
    left: auto;
    right: -8px;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.message-item.mine .message-subject {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.message-time {
    font-size: 0.7rem;
    color: #a78bfa;
    margin-top: 0.375rem;
    font-weight: 500;
}

.message-item.mine .message-time {
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.message-composer {
    padding: 1.5rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-top: 2px solid #e9d5ff;
    border-radius: 0 0 16px 0;
    flex-shrink: 0;
}

.composer-input {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 2px solid #e9d5ff;
    transition: all 0.2s ease;
}

.composer-input:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

.composer-input textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: #4c1d95;
    line-height: 1.5;
}

.composer-input textarea:focus {
    outline: none;
}

.composer-input textarea::placeholder {
    color: #a78bfa;
    font-style: italic;
}

.composer-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.composer-tools {
    display: flex;
    gap: 0.75rem;
}

.tool-btn {
    background: white;
    border: 2px solid #e9d5ff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.tool-btn:hover {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #8b5cf6;
    color: #7c3aed;
    transform: scale(1.1) rotate(5deg);
}

.btn-send {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-send:active {
    transform: translateY(0) scale(1);
}

.btn-send i {
    font-size: 0.875rem;
    animation: fly 1.5s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(2px) rotate(-5deg); }
    75% { transform: translateX(-2px) rotate(5deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(124, 58, 237, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3::before {
    content: "✉️";
    font-size: 1.25rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: #6b21a8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: white;
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: rotate(90deg) scale(1.15);
    color: #4c1d95;
}

#compose-form {
    padding: 2rem;
    background: linear-gradient(to bottom, #fafbff 0%, #ffffff 100%);
}

#compose-form .form-group {
    margin-bottom: 1.5rem;
}

#compose-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4c1d95;
    font-size: 0.9rem;
}

#compose-form input[type="text"],
#compose-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9d5ff;
    border-radius: 12px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
    color: #4c1d95;
}

#compose-form input[type="text"]:focus,
#compose-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

#compose-form input[type="text"]::placeholder,
#compose-form textarea::placeholder {
    color: #a78bfa;
    font-style: italic;
}

#recipient-suggestions {
    background: white;
    border: 2px solid #e9d5ff;
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

#recipient-suggestions.active {
    display: block;
    animation: suggestionSlide 0.2s ease;
}

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

.suggestion-item {
    padding: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-bottom: 1px solid #f3e8ff;
    transition: all 0.15s ease;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding-left: 1.125rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.suggestion-name {
    font-weight: 600;
    color: #4c1d95;
    font-size: 0.95rem;
}

.suggestion-role {
    font-size: 0.8125rem;
    color: #a78bfa;
    margin-top: 0.125rem;
}

/* Compose Modal Specific Styles */
#compose-modal .form-actions {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f3e8ff;
    margin-top: 1rem;
}

#compose-modal .form-actions .btn {
    margin: 0;
    flex: 0 0 auto;
}

#compose-cancel {
    min-width: 120px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#compose-cancel:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

#compose-cancel:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #94a3b8;
}

.loading i {
    margin-right: 0.5rem;
}

/* Inbox Tabs */
.inbox-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.inbox-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.inbox-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.inbox-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.inbox-tab i {
    font-size: 0.875rem;
}

/* Conversation Actions */
.conversation-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #4b5563;
}

.btn-icon[title="Archive"]:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #d97706;
}

.btn-icon[title="Delete"]:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Archived conversation indicator */
.conversation-item.archived {
    opacity: 0.7;
    background: #f9fafb;
}

.conversation-item.archived::before {
    content: '\f187';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Message delete button styles */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4b5563;
}

.message-item.mine .message-sender {
    color: #667eea;
}

.message-delete {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.message-item:hover .message-delete {
    opacity: 1;
}

.message-delete:hover {
    color: #ef4444;
}

.no-messages {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    /* Page header mobile styles */
    .inbox-page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }

    .inbox-header-content {
        width: 100%;
    }

    .inbox-header-content h1 {
        font-size: 1.5rem;
    }

    .inbox-header-content h1::before {
        width: 30px;
        height: 30px;
        -webkit-mask-size: 22px;
        mask-size: 22px;
    }

    .inbox-header-content .dashboard-subtitle {
        padding-left: 2.5rem;
        font-size: 0.85rem;
    }

    .inbox-header-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 0.5rem;
        border-top: 1px solid #e2e8f0;
    }

    .stat-item {
        gap: 0.125rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Back button for mobile */
    .back-to-dashboard-inline {
        font-size: 0.875rem;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Inbox container mobile styles */
    .pf-inbox {
        margin: 0;
        padding: 0 0.5rem;
    }

    .inbox-container {
        flex-direction: column;
        max-height: calc(100vh - 240px);
        min-height: 500px;
        border-radius: 16px;
        padding: 2px;
    }

    .inbox-sidebar {
        display: flex;
        width: 100%;
        border-radius: 14px 14px 0 0;
        border-right: none;
    }

    .inbox-main {
        display: none;
        border-radius: 0 0 14px 14px;
    }

    /* When conversation is active on mobile */
    .inbox-sidebar.conversation-active {
        display: none !important;
    }

    .inbox-main.conversation-active {
        display: flex !important;
        border-radius: 14px 14px 14px 14px;
    }

    /* Header adjustments */
    .inbox-header {
        padding: 1rem;
        height: auto;
        min-height: 70px;
    }

    .inbox-header h3 {
        font-size: 1.125rem;
    }

    .inbox-header h3::before {
        font-size: 1rem;
    }

    .btn-compose {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .conversation-header {
        padding: 1rem;
        height: auto;
        min-height: 70px;
        gap: 0.75rem;
    }

    .participant-info {
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .participant-info > div {
        min-width: 0;
        overflow: hidden;
    }

    .participant-name {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .participant-avatar {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .conversation-actions {
        flex-shrink: 0;
    }

    /* Search bar */
    .inbox-search {
        padding: 0.75rem 1rem;
    }

    .inbox-search input {
        font-size: 0.8125rem;
        padding: 0.625rem 2.5rem 0.625rem 1rem;
    }

    .inbox-search i {
        right: 1.5rem;
    }

    /* Tabs */
    .inbox-tabs {
        padding: 0.75rem 1rem;
        gap: 0.375rem;
    }

    .inbox-tab {
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }

    /* Conversations list */
    .conversation-item {
        padding: 0.875rem 1rem;
        margin: 0.25rem 0.375rem;
    }

    .conversation-avatar {
        width: 44px;
        height: 44px;
    }

    .conversation-name {
        font-size: 0.875rem;
    }

    .conversation-preview {
        font-size: 0.75rem;
    }

    .conversation-time {
        font-size: 0.65rem;
    }

    .unread-badge {
        font-size: 0.65rem;
        padding: 0.0625rem 0.3125rem;
    }

    /* Messages */
    .messages-container {
        padding: 1rem;
    }

    .message-item {
        margin-bottom: 1rem;
        gap: 0.625rem;
    }

    .message-avatar {
        width: 36px;
        height: 36px;
    }

    .message-bubble {
        max-width: 80%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .message-time {
        font-size: 0.65rem;
    }

    /* Composer */
    .message-composer {
        padding: 1rem;
    }

    .composer-input {
        padding: 0.75rem;
    }

    .composer-input textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }

    .composer-actions {
        margin-top: 0.75rem;
    }

    .btn-send {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    /* No conversation state */
    .no-conversation i {
        font-size: 3rem;
    }

    .no-conversation h3 {
        font-size: 1.25rem;
    }

    .no-conversation p {
        font-size: 0.875rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem auto;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.125rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    #compose-form {
        padding: 1.25rem;
    }

    #compose-form .form-group {
        margin-bottom: 1.25rem;
    }

    #compose-form label {
        font-size: 0.85rem;
    }

    #compose-form input[type="text"],
    #compose-form textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Stack compose modal buttons on mobile */
    #compose-modal .form-actions {
        flex-direction: column;
        gap: 0.875rem;
        padding-top: 1.25rem;
    }

    #compose-modal .form-actions .btn {
        width: 100%;
        flex: 1 1 auto;
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    #compose-cancel {
        min-width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .message-delete {
        opacity: 1;
    }

    /* Reduce animations on mobile for better performance */
    .conversation-item,
    .message-item,
    .btn-compose,
    .btn-send,
    .tool-btn {
        transition-duration: 0.15s;
    }

    /* Adjust spacing */
    .dashboard-page .container {
        padding: 2rem 0.5rem 0;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .inbox-page-header {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .inbox-header-content h1 {
        font-size: 1.25rem;
    }

    .inbox-header-content h1::before {
        width: 24px;
        height: 24px;
        -webkit-mask-size: 18px;
        mask-size: 18px;
    }

    .inbox-header-content .dashboard-subtitle {
        font-size: 0.75rem;
        padding-left: 2rem;
    }

    .inbox-container {
        max-height: calc(100vh - 200px);
        min-height: 400px;
        border-radius: 12px;
    }

    /* Conversation header */
    .conversation-header {
        padding: 0.75rem;
        min-height: 56px;
    }

    .participant-info {
        gap: 0.5rem;
    }

    .participant-avatar {
        width: 36px;
        height: 36px;
    }

    .participant-name {
        font-size: 0.9375rem;
    }

    .participant-role {
        font-size: 0.6875rem;
    }

    .conversation-actions .btn-icon {
        width: 32px;
        height: 32px;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .inbox-page-header {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .inbox-header-content h1 {
        font-size: 1.125rem;
    }

    .inbox-header-content .dashboard-subtitle {
        display: none;
    }

    .btn-compose {
        padding: 0.5rem;
        font-size: 0;
    }

    .btn-compose i {
        margin: 0;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    .inbox-container {
        max-height: calc(100vh - 160px);
        border-radius: 8px;
    }

    /* Conversation header */
    .conversation-header {
        padding: 0.5rem;
        min-height: 48px;
    }

    .participant-avatar {
        width: 32px;
        height: 32px;
    }

    .participant-name {
        font-size: 0.875rem;
    }

    .participant-role {
        font-size: 0.625rem;
    }

    .conversation-actions .btn-icon {
        width: 28px;
        height: 28px;
    }
}