body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;


        background:
                linear-gradient(to right, rgba(0,0,0,0.15), transparent 30%, transparent 70%, rgba(0,0,0,0.15)),
                #ffffff;
        min-height: 100vh;
        margin: 0;


    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background:
            linear-gradient(to right, rgba(0,0,0,0.15), transparent 30%, transparent 70%, rgba(0,0,0,0.15)),
            #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff6200;
    text-decoration: none;
}

.header-nav a {
    margin-left: 20px;
    color: #ff6200;
    text-decoration: none;
    font-weight: 500;
}

.header-nav a:hover {
    text-decoration: underline;
}

h1, h2 {
    color: #222;
    font-weight: 700;
}

h2 {
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.cardhov:hover {
    transform: translateY(-5px);
}

.card img {
    max-width: 100%;
    height: 8em;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background-color: #ff6200;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #e65c00;
}

.error {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.chat-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.chat-container h3 {
    margin: 0;
    color: #ff6200;
    cursor: pointer;
    font-size: 18px;
}

.message-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 10px 0;
    display: none;
}

.message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    max-width: 70%;
}

.sent {
    background-color: #e0f7fa;
    margin-left: 30%;
    text-align: right;
}

.received {
    background-color: #fff3e0;
    margin-right: 30%;
}

.message-text {
    margin: 0;
    word-wrap: break-word;
}

.message-time, .message-author {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0;
}

a {
    color: #ff6200;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.image-gallery {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: none;
    cursor: pointer;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 4px;
    transition: background 0.2s;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-dots {
    text-align: center;
    margin-top: 10px;
}

.gallery-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-dot.active {
    background: #ff6200;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #ff6200;
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0em;
    left: 0em;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-prev,
.fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 4px;
    transition: background 0.2s;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.2s;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.fullscreen-dots {
    position: absolute;
    bottom: 20px;
    text-align: center;
    width: 100%;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.image-preview-item {
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    transition: box-shadow 0.2s;
}

.image-preview-item.dragging {
    opacity: 0.5;
}

.image-preview-item.drag-over {
    box-shadow: 0 0 10px rgba(255, 98, 0, 0.5);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6200;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.remove-image:hover {
    background: #e65c00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .message {
        max-width: 100%;
        margin: 10px 0;
    }
    .sent {
        margin-left: 0;
    }
    .received {
        margin-right: 0;
    }
    .ad-image {
        max-height: 300px;
    }
    .image-preview-item {
        width: 120px;
        height: 120px;
    }
    .gallery-prev,
    .gallery-next {
        display: none; /* Hide arrows on mobile */
    }
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    .image-gallery {
        max-width: 100%;
    }
    .fullscreen-prev,
    .fullscreen-next {
        padding: 10px 15px;
        font-size: 24px;
    }
    .fullscreen-close {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 20px;
    }
}

