/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #dfd0b8;
    background: #222831;
    min-height: 100vh;
}

/* Container and Layout */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Header Styles */
.header {
    background: rgba(57, 62, 70, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 137, 121, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #dfd0b8;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #dfd0b8;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #948979;
    color: #222831;
}

/* Login/Register Page Styles */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
}

.hero-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem;
}

.hero-left {
    color: #dfd0b8;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #948979;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #393e46;
    border-radius: 10px;
    color: #dfd0b8;
}

.feature-item i {
    font-size: 1.2rem;
    color: #948979;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.modal-icon.success {
    background-color: #10b981;
}

.modal-icon.error {
    background-color: #ef4444;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 0 24px 16px;
}

.modal-body p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
}

/* Loading Spinner Styles */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.hidden {
    display: none !important;
}
</style>

/* Auth Container Styles */
.auth-container {
    background: #393e46;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
}

.form-container {
    width: 100%;
}

.form-title {
    color: #dfd0b8;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #948979;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #dfd0b8;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #222831;
    border: 1px solid #948979;
    border-radius: 5px;
    color: #dfd0b8;
    font-size: 14px;
    height: 36px;
}

.form-group input:focus {
    outline: none;
    border-color: #dfd0b8;
}

/* Wall Page Styles */
.wall-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Post Form and Cards */
.post-form, .post-card {
    background: #393e46;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    width: 100%;
}

.post-input {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem;
    background: #222831;
    border: 1px solid #948979;
    border-radius: 5px;
    color: #dfd0b8;
    margin-bottom: 0.8rem;
    resize: none;
}

.post-input::placeholder {
    color: #948979;
}

.post-content {
    margin-bottom: 0.8rem;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.image-upload-btn,
.location-btn,
.post-btn,
.post-actions button {
    font-family: inherit;
    font-size: 14px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #222831 !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #dfd0b8 !important;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 32%;
}

.image-upload-btn i,
.location-btn i,
.post-btn i,
.post-actions button i {
    margin-right: 8px;
}

.image-upload-btn:hover,
.location-btn:hover,
.post-btn:hover,
.post-actions button:hover {
    background: #948979 !important;
    color: #222831 !important;
    transform: translateY(-1px);
}

/* Post Interactions */
.post-interactions {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.like-count,
.comment-count {
    display: flex;
    align-items: center;
    color: #948979;
}

.like-count span,
.comment-count span {
    margin: 0 5px;
}

.like-count i,
.comment-count i {
    margin-right: 5px;
}

/* Like and Comment Buttons */
.like-button,
.comment-button {
    background: none;
    border: none;
    color: #dfd0b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.like-button:hover,
.comment-button:hover {
    background: rgba(148, 137, 121, 0.1);
}

.like-button.liked {
    color: #948979;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid #948979;
    padding-top: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.comment {
    background: #222831;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    color: #dfd0b8;
}

.comment-form {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 1rem;
}

.comment-input {
    flex: 1;
    background: #222831;
    border: 1px solid #948979;
    color: #dfd0b8;
    border-radius: 5px;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-size: 14px;
    height: 36px;
}

.comment-form button {
    height: 36px;
    padding: 0 16px;
    background: #948979;
    color: #222831;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.comment-form button:hover {
    background: #dfd0b8;
}

/* Location Section */
.location-section {
    background: #222831;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.location-preview {
    background: #393e46;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #dfd0b8;
}

/* Meta Information */
.post-meta,
.comment-meta,
.post-location {
    color: #948979;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-section {
    background: #393e46;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: #dfd0b8;
    margin-bottom: 1.5rem;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #222831;
    border-radius: 5px;
}

.user-info {
    display: flex;
    flex-direction: column;
    color: #dfd0b8;
}

.user-email {
    color: #948979;
    font-size: 0.9rem;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.analytics-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analytics-controls select {
    padding: 0.5rem;
    border-radius: 5px;
    background: #222831;
    color: #dfd0b8;
    border: 1px solid #948979;
}

.analytics-report {
    background: #222831;
    padding: 1.5rem;
    border-radius: 5px;
    color: #dfd0b8;
}

.user-post-breakdown {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #393e46;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-left {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .main-content {
        padding: 1rem;
    }

    .auth-container {
        padding: 1.5rem;
    }

    .wall-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .nav-container {
        padding: 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .auth-container {
        padding: 1rem;
    }
}