/* public/styles.css - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    color: #e5e5e5;
}

/* Message Page Styles */
.message-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.message-container {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.message-container .logo {
   margin-bottom: 30px;
}

.logo i {
    font-size: 3rem;
    color: #667eea;
    
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
}

.error-message {
    background: #ef4444;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #3a3a3a;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    color: #e5e5e5;
}

.input-group textarea::placeholder {
    color: #888888;
}

.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(10, 10, 10, 0.9);
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: #999999;
    margin-top: 5px;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 180px;
    justify-content: center;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999999;
    font-size: 14px;
}

.feature i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Success Page Styles */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.success-container {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.success-icon i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-container h1 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-container p {
    color: #999999;
    margin-bottom: 30px;
    font-size: 16px;
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Auth Page Styles */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.auth-header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .input-group {
    position: relative;
    margin-bottom: 0;
}

.auth-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 18px;
}

.auth-form input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #3a3a3a;
    border-radius: 15px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(10, 10, 10, 0.8);
    color: #e5e5e5;
}

.auth-form input::placeholder {
    color: #888888;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(10, 10, 10, 0.9);
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #999999;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    
}

.dashboard-header {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-content .logo i {
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(25, 25, 25, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-info p {
    color: #999999;
    font-size: 14px;
}

.messages-section {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.5rem;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-link p {
    color: #999999;
    font-size: 14px;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.no-messages {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
}

.no-messages i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #444444;
}

.no-messages h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-card {
    background: rgba(15, 15, 15, 0.8);
    border: 2px solid #3a3a3a;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.message-card.unread {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    font-size: 14px;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.read-btn {
    background: #10b981;
    color: white;
}

.read-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.share-btn {
    background: #3b82f6;
    color: white;
}

.share-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.message-content {
    color: #e5e5e5;
    line-height: 1.6;
    font-size: 16px;
    word-wrap: break-word;
}

.unread-indicator {
    position: absolute;
    top: 1px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.unread-indicator i {
    font-size: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
}

.close {
    color: #999999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
}

.story-preview {
    margin-bottom: 30px;
}

.story-card {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.story-header h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.story-message {
    background: rgba(255, 255, 255, 0.082);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.story-footer p {
    margin: 5px 0;
    opacity: 0.8;
}

.story-footer p:first-child {
    font-weight: 600;
}

.story-footer p:last-child {
    font-size: 14px;
    font-family: monospace;
}

.share-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-option {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {

    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-link {
        width: 100%;
        justify-content: space-between;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-actions {
        align-self: flex-end;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-options {
        flex-direction: column;
    }
    
    .features {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .message-container,
    .auth-container,
    .success-container {
        padding: 30px 20px;
    }
    
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .messages-section {
        padding: 20px 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .story-card {
        padding: 20px;
    }
}