:root {
    --primary-color: #646cff;
    --primary-hover: #535bf2;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #213547;
    --border-color: #e0e0e0;
    --hint-color: #666;
    --success-color: #10b981;
    --tag-bg: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}
a {
    text-decoration: none;
}
.dashboard-card {
    /* background: var(--card-bg); */
    padding: 2.5rem;
    /* border-radius: 16px; */
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); */
    animation: slideIn 0.5s ease-out;
    height: 100vh;
    min-width: 850px;
}

.dashboard-card1{
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
    min-width: 850px;
}

.animate-in {
    animation: slideIn 0.5s ease-out;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subtitle {
    color: var(--hint-color);
    margin-bottom: 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    font-weight: 500;
    font-size: 0.9rem;
}

select,
input,
textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 108, 255, 0.1);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--hint-color);
}

.input-counter {
    position: relative;
}

.custom-width {
    width: 90% !important;
}

.counter {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 0.8rem;
    color: var(--hint-color);
}

.seo-btn,
.create-btn,
.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.seo-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.seo-btn:hover {
    background-color: var(--border-color);
}

.create-btn {
    background-color: var(--primary-color);
    color: white;
}

.create-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.save-btn {
    background-color: var(--success-color);
    color: white;
}

.save-btn:hover {
    filter: brightness(110%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: auto;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--hint-color);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Tags Input */
.tags-input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: var(--tag-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

.tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hint-color);
    font-size: 0.8rem;
}

.tag-remove:hover {
    color: #ef4444;
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Modal Styles */
.seo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.seo-modal.active {
    display: flex;
}
.seo-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Notification Styles */
#seoNotificationContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    text-align: center;
}
.seo-success-message {
    background: #4caf50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    animation: seoFadeInOut 3s ease forwards;
}
@keyframes seoFadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


:root {
    --primary-color: #646cff;
    --primary-hover: #535bf2;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #213547;
    --border-color: #e0e0e0;
    --hint-color: #666;
    --success-color: #10b981;
    --tag-bg: #e2e8f0;
    --sidebar-width: 250px;
    --sidebar-bg: #1a1a1a;
    --sidebar-text: #ffffff;
}

/* ... (keep existing base styles) ... */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header img {
    border-radius: 8px;
    padding:13px;
}
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header h2 {
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Page Sections */
/* .page-section {
    display: none;
} */

.page-section.active {
    display: block;
}

/* Pages List */
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-item:hover {
    transform: translateX(5px);
}

.page-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.page-info p {
    color: var(--hint-color);
    margin: 0;
    font-size: 0.9rem;
}

.edit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.edit-btn:hover {
    background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .dashboard-card {
        margin: 0;
    }
}