@import 'common.css';

/* Page-specific styles */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #00eeff, #d51ed5);
    background-size: 200% 200%;
    animation: wave 10s ease infinite;
}
@keyframes wave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    background-color: #333333a4;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar .nav-links {
    display: flex;
}

.navbar a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.burger {
    display: none;
    cursor: pointer;
    padding: 14px 0;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.send {
    background-color: #00D707;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 3%;
    border-radius: 15px;
}

.content {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 20px;
    max-width: 800px;
    margin: 70px auto;
    background: linear-gradient(180deg, #ffffff44, #f0f0f0);
    border-radius: 8px;
    width: 90%;
}

h1 {
    text-align: center;
    color: #333;
}

p {
    margin: 10px 0;
}

input[type="text"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #00D707;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}
.message {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.message-image {
    max-width: 100%;
    max-height: 300px;
    margin-top: 10px;
}
.timestamp {
    color: #888;
    font-size: 0.8em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-title {
    margin-top: 0;
    color: #333;
}

.modal-message {
    margin-bottom: 20px;
    color: #555;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-btn-confirm {
    background-color: #dc3545;
    color: white;
}

.modal-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .burger {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar a {
        width: 100%;
        text-align: left;
    }
    
    .content {
        margin-top: 30px;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media screen and (max-width: 480px) {
    .content {
        padding: 15px;
    }
    
    .message-header {
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}