@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
  }
  
  .top-nav {
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }

.top-nav h1 {
    margin: 0;
    font-size: 20px;
}

.top-nav button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
}

.top-nav button:hover {
    background-color: #003d82;
}

/* Editor Container */
.editor-container {
    max-width: 850px;
    padding-top: 80px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-top: 100px;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #f0f2f5;
    padding: 12px;
    border-radius: 8px;
}

.tool-btn {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
}

.tool-btn:hover {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

/* Content Area */
.content h2, .content p {
    width: 100%;
    border: none;
    outline: none;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0;
}

.content p {
    font-size: 18px;
    font-weight: 400;
    color: #555;
}

/* Input Fields */
input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

input::placeholder {
    color: #999;
}

/* Editable Content */
#post-content {
    min-height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}

.action-buttons button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
}

.action-buttons button:hover {
    background-color: #0056b3;
}

.action-buttons #cancel {
    background-color: #6c757d;
}

.action-buttons #cancel:hover {
    background-color: #5a6268;
}

/* Responsive adjustments for template.css */
@media (max-width: 768px) {
    .editor-container {
        margin: 20px auto; /* Reduce margin */
        padding: 15px;     /* Reduce padding */
    }

    .toolbar {
        flex-wrap: wrap; /* Allow tools to wrap */
        gap: 8px;        /* Adjust gap */
    }

    .tool-btn {
        padding: 5px 10px; /* Adjust button padding */
        font-size: 14px;  /* Adjust font size */
    }

    .content h2 {
        font-size: 20px; /* Adjust heading font size */
    }

    .content p, #post-content {
        font-size: 16px; /* Adjust paragraph/editor font size */
    }

    input {
        font-size: 15px; /* Adjust input font size */
    }

    .action-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .action-buttons button {
        width: 100%; /* Make buttons full width */
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .editor-container {
        margin: 10px auto;
        padding: 10px;
    }
    /* Further adjustments for very small screens if needed */
}
