/* General Body Styling */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #FDECF0, #FADADD); /* Gradient background */
    color: #4A4A4A;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

/* Header and Navigation */
header {
    padding: 25px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #D96098; /* A darker, elegant pink for links */
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #C23B7B; /* Hover color */
}

/* Main Content - Hero Section for the Quote */
.hero-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: 4vw; /* Responsive font size based on viewport width */
    font-weight: 700;
    color: #333;
    max-width: 800px;
    line-height: 1.4;
}

/* Styling for other pages (About, Project, Blog) */
.page-content {
    flex-grow: 1;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    color: #C23B7B;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-content .about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 30px;
}

.page-content .professional-info {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.page-content .back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #D96098;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-content .back-link:hover {
    background-color: #C23B7B;
}


/* Footer */
footer {
    padding: 20px 0;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote {
        font-size: 6vw; /* Larger font size on smaller screens for impact */
    }

    nav ul {
        gap: 25px;
    }

    nav a {
        font-size: 1rem;
    }

    .page-content h2 {
        font-size: 2rem;
    }
}

/* Project Page Styling */
.project-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: left;
}

.project-item h3 {
    font-family: 'Playfair Display', serif;
    color: #C23B7B;
    font-size: 1.8rem;
    margin-top: 0;
}

.project-item .project-description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-item .project-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #D96098;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.project-item .project-link:hover {
    background-color: #C23B7B;
}

.project-item .inspiring-quote {
    font-style: italic;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
}

/* Container for project links */
.project-links-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.playstore-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

.playstore-link:hover {
    background-color: #333333 !important;
}

/* Dashboard Styling */
.dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: transparent;
}

.dashboard-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #C23B7B;
    font-size: 3rem;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.dashboard-card h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-top: 0;
}

.management-list {
    list-style: none;
    padding: 0;
}

.management-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f5f5f5;
}

.action-buttons button, .btn-add {
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.action-buttons button:hover, .btn-add:hover {
    opacity: 0.8;
}

.btn-rename { background-color: #3498db; color: white; }
.btn-edit-content { background-color: #9b59b6; color: white; }
.btn-delete { background-color: #e74c3c; color: white; }
.btn-add { background-color: #2ecc71; color: white; }
.btn-save { background-color: #f1c40f; color: white; }
.btn-cancel { background-color: #bdc3c7; color: white; }
.btn-move-up, .btn-move-down {
    background-color: #95a5a6;
    color: white;
    padding: 8px 10px;
    font-family: sans-serif;
}
.btn-edit-post, .btn-delete-post { margin-right: 5px; }

/* Blog Post Styling */
.blog-post-summary {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.blog-post-summary:last-child {
    border-bottom: none;
}

.blog-post-summary h3 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 2rem;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.pagination-controls {
    text-align: center;
    margin-top: 20px;
}

.edit-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Page Editor Styling */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#page-content-editor {
    width: 100%;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#save-status {
    margin-top: 15px;
    color: #2ecc71;
    font-weight: bold;
}

.add-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.add-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.content-table th, .content-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.content-table th {
    background-color: #f9f9f9;
    font-weight: 700;
}

/* Login Page Styling */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #FDECF0, #FADADD);
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #D96098;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #C23B7B;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    height: 1em;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-logout {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-logout:hover {
    background-color: #7f8c8d;
}

@media (max-width: 480px) {
    .quote {
        font-size: 7vw;
    }
}